This commit is contained in:
2023-05-07 18:35:33 -05:00
parent 29afc9a541
commit 4ad277c3a8
2 changed files with 3 additions and 3 deletions

View File

@@ -4,4 +4,4 @@
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword
Get-Datastore | Where {$_.Name -like '*iSCSI1*' -or $_.Name -like '*iSCSI2*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false
Get-Datastore | Where {$_.Name -like '*iSCSI1*' -or $_.Name -like '*iSCSI2*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'}

View File

@@ -295,9 +295,9 @@ SHUTDOWN_SERVER(){
ISCSIVMSHUTDOWN(){
for ESXIHOST in "${ESXIHOSTS[@]}"; do
echo ${ESXIHOST}
/opt/idssys/powerwall/esxi-scripts/iscsi-vm-shutdown.ps1 ${ESXIHOST}
done
#/opt/idssys/powerwall/esxi-scripts/iscsi-vm-shutdown.ps1
}
TEST(){