Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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:
HKLM\SYSTEM\CurrentControlSet\Control\Class{4D36E972-E325-11CE-BFC1-08002bE10318}
...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!!

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?

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.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |