Update sys-iscsi-shutdown.ps1
This commit is contained in:
1 parent
a7f81113a4
commit
9c9ae73748
1 file changed
+1
-1
@@ -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*'}
|
||||
Reference in new issue
Block a user