This commit is contained in:
2024-01-31 16:16:03 -06:00
parent 2d8ca41d3f
commit ff6c54e35e
2 changed files with 2 additions and 3 deletions

View File

@@ -1,8 +1,7 @@
#!/usr/bin/env pwsh
. /opt/idssys/powerwall/settings.ps1
#Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Connect-VIServer $VCENTERHOST -Force -Protocol https -User $VCENTERUSER -Password $VCENTERPASS
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
$vmhosts=$args[0].Split(",")
Foreach ($vmhost in $vmhosts)