From 124621eb6900cf3942936bac91aaea2ee14cd99a Mon Sep 17 00:00:00 2001 From: Jonathan Colon Date: Sun, 7 Apr 2024 13:36:34 -0400 Subject: [PATCH] New-AsBuiltReport : Exception calling "Save" with "1" argument(s): "'.', hexadecimal value 0x00, is an invalid character." #26 --- Src/Private/Get-AbrWinHostStorageVolume.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Private/Get-AbrWinHostStorageVolume.ps1 b/Src/Private/Get-AbrWinHostStorageVolume.ps1 index 8814443..c5ddc74 100644 --- a/Src/Private/Get-AbrWinHostStorageVolume.ps1 +++ b/Src/Private/Get-AbrWinHostStorageVolume.ps1 @@ -27,7 +27,7 @@ function Get-AbrWinHostStorageVolume { process { if ($InfoLevel.Storage -ge 1) { try { - $HostVolumes = Invoke-Command -Session $TempPssSession -ScriptBlock { Get-Volume | Where-Object {$_.DriveType -ne "CD-ROM" -and $NUll -ne $_.DriveLetter} } + $HostVolumes = Invoke-Command -Session $TempPssSession -ScriptBlock { Get-Volume | Where-Object {$_.DriveType -ne "CD-ROM" -and $_.DriveLetter} } if ($HostVolumes) { Section -Style Heading3 'Host Volumes' { Paragraph 'The following section details local volumes on the host'