diff --git a/disk_check.ps1 b/disk_check.ps1 index 719faed..725b7c3 100644 --- a/disk_check.ps1 +++ b/disk_check.ps1 @@ -10,7 +10,7 @@ $logFile="C:\ACS\disk_check.log" $computerName='localhost' $rebootTime=Get-Date "1:00" $requireReboot=$false -$volumes=Get-Volumes -CimSession $cimSession +$volumes=Get-Volume Function Write-Log{ Param ([string]$logstring)