- Local time
- 4:44 AM
- Posts
- 127
- OS
- Windows 11 27783
Ive discovered that you can get device IDs from registry using wmic and shell scripting commands.
Device Manager > Network adapters > Properties > Details tab
The reason for wanting this script is so the Class GUID doesnt need modified within the batch script to correlate with the randomly generated Class GUID for each system, as it always changes depending on NIC.
Any thoughts?
Thats for the USB controller as an example. Im trying to figure out how to apply a similar method for getting the Class GUID for the NIC to change this registry key. In bold is the NIC Class GUID.for /f %%i in ('wmic path Win32_USBController get PNPDeviceID^| findstr /l "PCI\VEN_"') do (
The NIC Class GUID can be found manually by:reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\1B2AF3AC-865B-4B81-BFFA-790A51C634A6}" /v "TCPNoDelay" /t REG_DWORD /d "1" /f
Device Manager > Network adapters > Properties > Details tab
The reason for wanting this script is so the Class GUID doesnt need modified within the batch script to correlate with the randomly generated Class GUID for each system, as it always changes depending on NIC.
Any thoughts?
- Windows Build/Version
- Windows 11 27729
My Computer
System One
-
- OS
- Windows 11 27783
- Computer type
- PC/Desktop
- CPU
- Intel i7 7700 @4.0ghz
- Memory
- 64gb DDR4
- Graphics Card(s)
- Radeon RX 5500 XT
- Other Info
- https://www.github.com/shoober420