Shutting Down Running VMs – Revisited
June 4th, 2016 by Charlie Russel and tagged Hyper-V, PowerShell, PowerShell v5
A couple of years ago, I posted a perfectly good snippet for shutting down the running VMs on a machine. But the code there is very much the “old syntax” and not terribly elegant. For shutting down all the running RODCs, I used: Get-VM -Name *rodc* | Where-Object {$_.State -eq “Running” } | Foreach-Object { […]
Posted in Hyper-V, PowerShell | Comments Off on Shutting Down Running VMs – Revisited