diff --git a/esxi-scripts/offsite-vm-shutdown.ps1 b/esxi-scripts/offsite-vm-shutdown.ps1 index 9a45d7ba..42011eec 100755 --- a/esxi-scripts/offsite-vm-shutdown.ps1 +++ b/esxi-scripts/offsite-vm-shutdown.ps1 @@ -1,6 +1,7 @@ #!/usr/bin/env pwsh . /opt/idssys/powerwall/settings.ps1 - + +Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false 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*'}