February 27th, 2014

PowerTip: Find Network Adapters for all Virtual Machines

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find the network adapter names for all virtual machines.

Hey, Scripting Guy! Question How can I use Windows PowerShell on my laptop running Windows 8.1 to find the name
          of the network adapter that is used by each of my virtual machines?

Hey, Scripting Guy! Answer Use the Get-VM cmdlet to retrieve all of the virtual machines,
          and pipe the result to the Get-VMNetworkAdapter:

Get-Vm | Get-VMNetworkAdapter

Note: This command must be run with Admin rights.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.