diff --git a/esxi-scripts/sys-iscsi-shutdown.ps1 b/esxi-scripts/sys-iscsi-shutdown.ps1 index 3017f0c9..d79ca21b 100755 --- a/esxi-scripts/sys-iscsi-shutdown.ps1 +++ b/esxi-scripts/sys-iscsi-shutdown.ps1 @@ -5,5 +5,5 @@ Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword # Get-Datastore | Where {$_.Name -like '*iSCSI1*' -or $_.Name -like '*iSCSI2*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false - +write-host "Checking server: $args[0]" Get-Datastore | Where {$_.Name -like '*iSCSI1*' -or $_.Name -like '*iSCSI2*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} \ No newline at end of file