这应该可以解决问题(PowerShell):
Add-Type -AssemblyName System.Collections
[System.Collections.Generic.List[string]]$ncs = @()
[System.Collections.Generic.List[object]]$ncreg = @()
$networkcards = reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"
$networkcards = @($networkcards | ? { $_ })
[void]$ncreg.AddRange( $networkcards )
foreach( $nc in $ncreg ) {
$id = reg query $nc
[void]$ncs.Add( $id )
}
foreach( $nc in $ncs ) {
if( $nc -match '^.*{.*}' ) {
$ncIdent = $nc -replace '^.*({.*}).*', '$1'
start "::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::$ncIdent"
[System.Windows.Forms.SendKeys]::SendWait('{Tab}{ENTER}')
}
}