Archive for February, 2014

Shutting Down Running VMs

February 24th, 2014 by and tagged , ,

A quick Hyper-V PowerShell one-liner today. This one will gracefully stop all virtual machines with RODC in their name. ¬†Get-VM -Name *rodc* | Where-Object {$_.State -eq “Running” } | Foreach-Object { Stop-VM $_.Name } I needed this because I was cloning an RODC that I had virtualized, and I wanted a quick way to shut […]

Posted in Active Directory, Hyper-V, PowerShell | Comments Off on Shutting Down Running VMs