Sign in or 

| Version | User | Scope of changes |
|---|---|---|
| Oct 26 2009, 8:00 PM EDT (current) | RyanW-Dell | 51 words added |
| Oct 23 2009, 5:28 PM EDT | RyanW-Dell |
@echo off&Title=Set Adapter Names &MODE CON: COLS=100 LINES=20
powershell -nologo -command "Write-Host 'Attempting to rename adapters named Local Area Connection* to their MAC address'; $Shell = New-Object -com shell.application; $NetCons = $Shell.Namespace(0x31); $NetCons.Items() | where {$_.Name -like 'Local Area Connection*'} | foreach{$AdapName=$_.Name; get-WmiObject -class Win32_NetworkAdapter| where-Object {$_.NetConnectionID -eq $AdapName} | foreach {$MAC=$_.MacAddress}; Write-Host Renaming $_.Name to $MAC; $_.Name=$MAC.replace(':','.')}" | more
pause