A while back I was working at a place where the desktop techs needed to send the wireless MAC address to the network security team. So during the build I wrote this powershell script to save the MAC address to a text document on the desktop and to open it up.
This was done in conjunction with MDT while it wrapped up the task sequence logged in as the built-in administrator .
1 2 3 4 5 |
Get-WmiObject win32_networkadapterconfiguration | Where-Object {$_.caption -like "*wireless*"} | Select-Object -property Description,MacAddress | Out-File $env:userprofile\desktop\mac.txt Invoke-Item $env:userprofile\desktop\mac.txt |
0 Comments.