(imported topic written by SystemAdmin)
Hey guys…
I have a laptop that connects wirelessly that has an onboard NIC that I had disabled when the PCs were distributed. I figured I could use DEVCON to enable them.
Few things…
DEVCON requires the hardware ID of a device. For these specific PCs, I figured I could get the hardware ID and kick off DEVCON like this…
waithidden cmd.exe /c devcon.exe enable {following text of first “=” of (selects “DeviceID from Win32_PnpEntity where Name=‘Broadcom NetXtreme 57xx Gigabit Controller’” of wmi as string)}
However, it seems that DEVCON doesn’t seem to like passing the actual string as the “&” seems to confuse it. Also, it seems that passing the whole string appears to be too long.
So I changed it to be…
waithidden cmd.exe /c devcon.exe enable {(it & “”) of concatenation “” of substrings separated by “&” of preceding text of last “” of following text of first “=” of (selects “DeviceID from Win32_PnpEntity where Name=‘Intel® 82567LM-3 Gigabit Network Connection’” of wmi as string)}
Better suggestion anyone?
-Paul