diff --git a/esxi-scripts/host-maintenance_mode.ps1 b/esxi-scripts/host-maintenance_mode.ps1 index e7234987..0ec7710d 100755 --- a/esxi-scripts/host-maintenance_mode.ps1 +++ b/esxi-scripts/host-maintenance_mode.ps1 @@ -2,6 +2,6 @@ . /opt/idssys/powerwall/settings.ps1 -Connect-VIServer -Server $PW_VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null +Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null Get-VMHost -Name $args[0] | set-vmhost -State Maintenance diff --git a/powerwall.sh b/powerwall.sh index 2507b942..49e5b3b2 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -1127,7 +1127,7 @@ SHUTDOWN_SERVER(){ echo -en "${idsCL[LightCyan]}Shutting down remaining VM's ... " if [ "${TEST}" != "true" ]; then ${PW_FOLDER}/esxi-scripts/vm-shutdown.ps1 ${hostip} >/dev/null 2>&1 - ${PW_FOLDER}/esxi-scripts/iscsi-server-shutdown.ps1 ${hostip} >/dev/null 2>&1 + # ${PW_FOLDER}/esxi-scripts/iscsi-server-shutdown.ps1 ${hostip} >/dev/null 2>&1 fi echo -e "${idsCL[Green]}Done\n"