Fix UNC paths for ConvertFrom-ExcelSheet

This commit is contained in:
sporkabob
2021-05-13 15:22:15 -04:00
parent e486135c4f
commit 7026803415

View File

@@ -19,7 +19,7 @@ function ConvertFrom-ExcelSheet {
[string[]]$AsDate = @()
)
$Path = (Resolve-Path $Path).Path
$Path = (Resolve-Path $Path).ProviderPath
$xl = New-Object -TypeName OfficeOpenXml.ExcelPackage -ArgumentList $Path
$workbook = $xl.Workbook