Check NIC speed and duplex settings

April 26, 2009 at 18:27:32
Specs: Windows XP
Hello, I hope someone can help me with this! I'm trying to read the NIC speed and duplex settings from the registry of a remote machine. I realise this is made more difficult by the fact that this information can be in any one the subkeys within:


...and that the value can be called different things depending on the NIC manufacturer (e.g. "RequestedMediaType" or "SpeedDuplex").

However, I had a vbs script that I'd just about got working on my local machine until I tested it on a remote machine and discovered I can't access WMI on a remote machine because I get a permission denied error.

So now I'm thinking of doing this using a batch file that makes use of the reg query command. Trouble is I'm a bit of a novice when it comes to batch files and was hoping someone could point me in the right direction.

Basically I want to search each subkey within the registry key I specified above to see if it contains the value "DriverDesc". There could be more than one subkey with this entry because the machines I'll be running it on are servers and have 3 NICs. Then it needs to compare the "DriverDesc" value data to see if it contains certain strings (e.g. "HP NC7782" and "HP NC7170"). Then depending on the result it's got to look for either of the values "RequestedMediaType" or "SpeedDuplex" within the same subkey and display the NIC speed/duplex settings based on that value's data.

Hope this all makes sense, sorry if it doesn't!!

See More: Check NIC speed and duplex settings

Report •

April 29, 2009 at 20:43:12
Question: Why do you think you'll have the permissions to get remote registry information from a command script, when you didn't with WMI?

Report •

April 30, 2009 at 05:31:26
Because I've tried running the reg query command on a remote machine and it works. I believe you need to be a local administrator on the remote machine to access WMI, presumably this is not the case when accessing the registry using reg.exe.

Report •

Related Solutions

Ask Question