Last active
August 29, 2015 14:13
-
-
Save chipitsine/0735bfa08310597f9da8 to your computer and use it in GitHub Desktop.
dynamic-mac.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4 | |
cls | |
ipmo VirtualMachineManager | |
get-scvirtualmachine | % { | |
[String] $vm = $_.Name | |
($_.VirtualNetworkAdapters).Where({$_.MACAddressType -eq 'Dynamic'},'First') | % { | |
Write-Host $vm | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment