From 9c9ae737488639a1e75873e9081d8eabaec3c8aa Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 7 May 2023 18:19:48 -0500 Subject: [PATCH] Update sys-iscsi-shutdown.ps1 --- esxi-scripts/sys-iscsi-shutdown.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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