Files
powerwall/esxi-scripts/iscsi-sys-server-shutdown.ps1
2023-11-02 13:50:29 -05:00

10 lines
257 B
PowerShell
Executable File

#!/usr/bin/env pwsh
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
Get-VM | Where {$_.Name -like '*iSCSI-Systems*'} | Shutdown-VMGuest -Confirm:$false
exit 0