Select Page

This morning I need to power on and off all the VMs in a folder named CallCenter/ I created these PowerCLI one liner to do that.

This morning I need to power off all the VMs in a folder named CallCenter/ I created the PowerCLI one liner to power them off.

 

 

Get-Folder “CallCenter” | get-vm |Where-object {$_.powerstate -eq “poweredoff”} | Start-VM -Confirm:$false -RunAsync

Get-Folder “CallCenter” | get-vm |Where-object {$_.powerstate -eq “poweredon”} | Stop-VM -Confirm:$false -RunAsync

Social Share Buttons and Icons powered by Ultimatelysocial