Skip to content

Instantly share code, notes, and snippets.

@toruuetani
Created April 8, 2014 08:29
Show Gist options
  • Save toruuetani/10101751 to your computer and use it in GitHub Desktop.
Save toruuetani/10101751 to your computer and use it in GitHub Desktop.
PowerShell V2 でネットワークアダプター名を変更する
Get-WmiObject -Class Win32_NetworkAdapter -Filter "NetConnectionID = 'ローカル エリア接続'" | %{
$_.NetConnectionID = 'Connection2'
$_.Put()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment