This commit is contained in:
2024-02-22 23:04:49 -06:00
parent c1e2bc516e
commit 01a63214e9
3 changed files with 70 additions and 1 deletions

62
esxi-scripts/cooldown.ps1 Executable file
View File

@@ -0,0 +1,62 @@
#!/usr/bin/env pwsh
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Get-VM | Where {$_.Name -like '*MySQL-Node2*' -or $_.Name -like '*Webserver-Node2*' -or $_.Name -like '*LB-Node2*' -or $_.Name -like '*WAN-DNS-Node3*' -or $_.Name -like '*UniFi-Camera-Proxy*' -or $_.Name -like '*Internet Monitor*' -or $_.Name -like '*OMSA*' -or $_.Name -like '*OpenConnect VPN*' -or $_.Name -like '*RustDesk Server*'} | Shutdown-VMGuest -Confirm:$false
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false