Advertisement
PureGremlin

Get-VMIPAddress

Jan 2nd, 2024
1,207
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Get-VMIPaddress($IP) {
  2. $vm=get-vm * | ? {$_.Guest.IPaddress -match $IP}| Get-NetworkAdapter
  3. $vm | select-object Parent,Name,MacAddress
  4. }
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement