This commit is contained in:
2023-11-01 08:45:43 -05:00
parent edc966ba32
commit 9e7235dadb
9 changed files with 18 additions and 0 deletions

View File

@@ -5,3 +5,5 @@
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*' -and $_.Name -notlike '*iSCSI*'} | Shutdown-VMGuest -Confirm:$false
exit 0