update
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
|
||||
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword
|
||||
|
||||
Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -like '*MySQL*' -and $_.Name -like '*PiHole*' -and $_.Name -like '*vCenter*'} | Suspend-VM
|
||||
Get-VM | Where {$_.PowerState -like '*On*' -and ($_.Name -like '*MySQL*' -or $_.Name -like '*PiHole*' -or $_.Name -like '*vCenter*')} | Suspend-VM
|
||||
|
||||
Reference in New Issue
Block a user