Create host-maintenance_mode.ps1
This commit is contained in:
7
esxi-scripts/host-maintenance_mode.ps1
Executable file
7
esxi-scripts/host-maintenance_mode.ps1
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
. /opt/idssys/powerwall/settings.ps1
|
||||
|
||||
Connect-VIServer -Server 10.10.1.30 -Protocol https -User administrator@scity.vs -Password 'Dc$@1910'
|
||||
|
||||
Get-VMHost -Name 10.10.2.17 | set-vmhost -State Maintenance
|
||||
Reference in New Issue
Block a user