Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Find Running Virtual Machines

$
0
0

Summary: Sean Kearney explains how to use Windows PowerShell to find running virtual machines.

Hey, Scripting Guy! Question How can I find a list of virtual machines on my computer that is running Windows Server 2012 with Hyper-V?

Hey, Scripting Guy! Answer Use the Get-VM cmdlet and filter on the State property:

Get-VM | Where { $_.State -eq 'Running' }

Or if you need to check a remote computer:

Get-VM -computername RemoteHyperVServer | Where { $_.State -eq 'Running' }\


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>