Solved

Search for VM by IP address in VMM

Posted on 2014-09-07
3
479 Views
Last Modified: 2014-09-08
Is it possible to search for VMs based on IP address in VMM?
0
Comment
Question by:itnifl
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Shabarinath Ramadasan earned 500 total points
ID: 40309335
Please try this from SCVMM Powershell.

Get-Vm |Get-VirtualNetworkAdapter |Where {$_.IPv4Addresses -match "192.168.123.112"} |Select Name, IPv4Addresses}

Open in new window


Cheers !
0
 
LVL 2

Author Closing Comment

by:itnifl
ID: 40309393
I was hoping for a gui option, but PS works fine. Slight error there at the end of your line. You have an } that ain't supposed to be there :)
I changed it to the following to suit my needs:

Get-Vm |Get-VirtualNetworkAdapter |Where {$_.IPv4Addresses -like "192.168.123*"} | Select Name, IPv4Addresses

Open in new window


Thanks!
0
 
LVL 14

Expert Comment

by:Shabarinath Ramadasan
ID: 40309474
:D That } came while I did a copy paste. Initially, I put the where condition check at the end. After a while, I realized that the conditioning should happen first for a quicker response. So while I posted it, I copy pasted each block - however this } came un noticed.

Glad to hear that it worked for you !

Cheers !
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now