How Can We Help?
< Back
You are here:
Print

Find VM based on MAC

This sample query shows one way of finding a VM which has a vNIC with a specific MAC address.

The following might seem a bit cryptic at first, but it turns out to be the fastest method I came up with till now.

It uses the where-method instead of the Where-Object cmdlet. See also Use the ‘faster’ methods.

 

If you need to look for a number of MAC addresses, you can do

Leave a Reply

Your email address will not be published.

*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Table of Contents