Update vm-shutdown.ps1

This commit is contained in:
2024-01-31 10:25:04 -06:00
parent a3fdc5c1b8
commit e5d14cbc44

View File

@@ -9,7 +9,7 @@
write-host $args[0]
# Get-VMHost | Where {$args[0]} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*' -and $_.Name -notlike '*iSCSI*'}
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false
# Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false