minor wording change
This commit is contained in:
@@ -39,7 +39,7 @@ Try
|
|||||||
{
|
{
|
||||||
$SystemDrive = $Env:SystemDrive.TrimEnd('\')
|
$SystemDrive = $Env:SystemDrive.TrimEnd('\')
|
||||||
If ( (Get-CimInstance -ClassName Win32_Volume -Filter "DriveLetter = '$SystemDrive'" -ErrorAction Stop).FreeSpace -lt 64GB ) { Write-Output "This endpoint does not have at least 64GB of storage on the system drive" ; Exit 1 }
|
If ( (Get-CimInstance -ClassName Win32_Volume -Filter "DriveLetter = '$SystemDrive'" -ErrorAction Stop).FreeSpace -lt 64GB ) { Write-Output "This endpoint does not have at least 64GB of storage on the system drive" ; Exit 1 }
|
||||||
Else { Write-Output "This endpoint has at least 64GB of storage on the system drive" }
|
Else { Write-Output "This endpoint has at least 64GB of free space on the system drive" }
|
||||||
}
|
}
|
||||||
Catch { Write-Error "The free space on the system drive could not be determined`n"+$_.Exception.Message ; Exit 1 }
|
Catch { Write-Error "The free space on the system drive could not be determined`n"+$_.Exception.Message ; Exit 1 }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user