SUBJECT: Obtain Default Gateway From Remote System?
All,
I know you can do this via IPConfig |find "Default Gateway" via RCMD, but this is not sufficient. I also know that there is a SetGateways Method of the Win32_NetworkAdapterConfiguration Class, but there is no 'Get', 'List' or 'Show' equivalent method. This value is also stored in the Hive: HKEY_LOCAL_MACHINE
Key: System\ControlSet001\Services\<adapter name>\ Parameters\Tcpip. This is only good if you actually know the adapter ID on all of the 'Remote Systems' that you want to query.
Does anyone know of a method that you can at least steer me towards or perhaps someone has already tackled/solved this one.
TIA,
Greg
Greg Armstrong
A+ MCSE+I