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