update
This commit is contained in:
@@ -9,7 +9,6 @@ $VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-*'} | Get-VM
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ $VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ $VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-PRI*'} | Get-VM
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ $VMLIST = Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user