update
This commit is contained in:
9
esxi-scripts/disable-system-vms.ps1
Executable file
9
esxi-scripts/disable-system-vms.ps1
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
. /opt/idssys/powerwall/settings.ps1
|
||||
|
||||
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
|
||||
|
||||
Set-DrsRule -Rule "System VMs (S)" -Enabled $false;
|
||||
|
||||
Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false
|
||||
Reference in New Issue
Block a user