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

PowerTip: Use PowerShell to Find Network Adapters

$
0
0

Summary: Use Windows PowerShell to find network adapters associated with running virtual machines.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see the network adapters that are associated with all running
           virtual machines on my Windows 8.1 laptop that runs Hyper-V?

Hey, Scripting Guy! Answer Use the Get-VM cmdlet to look for running virtual machines. Then pipe the results to the 
           Get-VMNetworkAdapter cmdlet, for example:

(Get-VM).where({$_.state -eq 'running'}) | Get-VMNetworkAdapter

Note  This command must be run with Admin rights. It also uses the Where method syntax
introduced in Windows PowerShell 4.0.


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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