PowerTip: Find Assigned Virtual Machine Network Adapters

The Scripting Guys

Dr

Summary: Learn how to find network adapters that are assigned to virtual machines.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find what network adapters are assigned to my virtual machines?

Hey, Scripting Guy! Answer Use the Get-VM cmdlet and pipe the results to the Get-VMNetworkAdapter cmdlet, for example:

Get-VM | Get-VMNetworkAdapter          

Note  You must run this command with elevated permissions.

The Scripting Guys
Dr Scripto

Follow Dr   

No Comments.