10 lines
395 B
PowerShell
Executable File
10 lines
395 B
PowerShell
Executable File
#!/usr/bin/env pwsh
|
||
|
||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null
|
||
. /opt/idssys/powerwall/conf/settings.ps1
|
||
|
||
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
|
||
|
||
Get-VM | Where {$_.Name -like '*iSCSI-*'} | Shutdown-VMGuest -Confirm:$false
|
||
|
||
Disconnect-VIServer -Server $args[0] -Force –Confirm:$false |