|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!!