From d33828efa1486bd7e0e5f95ccb466b14889e693f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 7 May 2023 18:21:04 -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 d79ca21b..3017f0c9 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