This commit is contained in:
2024-01-23 14:36:30 -06:00
parent 4b289ea72b
commit 7cc03a8e8a
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
VERS='2.5.148-01232024'
VERS='2.5.149-01232024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -5,6 +5,6 @@ Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out
$ESXI = Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
Get-Datastore | Where {$_.Name -like '*iSCSI-*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false
Get-Datastore | Where {$_.Name -like '*iSCSI-*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*' -and $_.Name -notlike '*iSCSI-*'} | Shutdown-VMGuest -Confirm:$false
Disconnect-VIServer $ESXI -Confirm:$false