Update vm-shutdown.ps1
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
#!/usr/bin/env pwsh
|
#!/usr/bin/env pwsh
|
||||||
. /opt/idssys/powerwall/settings.ps1
|
. /opt/idssys/powerwall/settings.ps1
|
||||||
|
|
||||||
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
|
#Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
|
||||||
|
Connect-VIServer $VCENTERHOST -Force -Protocol https -User $VCENTERUSER -Password $VCENTERPASS
|
||||||
|
|
||||||
$vmhosts=$args[0].Split(",")
|
$vmhosts=$args[0].Split(",")
|
||||||
Foreach ($vmhost in $vmhosts)
|
Foreach ($vmhost in $vmhosts)
|
||||||
|
|||||||
Reference in New Issue
Block a user