I don't think you need RemoteExec() at all. Reading the manual, it would appear NetSH can be used against remote machines directly. Borrowing from the NetSH manual:
Quote:
· -r RemoteMachine
Specifies that the netsh commands are run on a remote computer specified by either its name or IP address.
You can dump your local config with the command:
NetSH Dump
It will give you a big long script that you should be able to glean info from.
i.e.
# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip
# Interface IP Configuration for "Local Area Connection"
set address name="Local Area Connection" source=dhcp
set dns name="Local Area Connection" source=dhcp register=PRIMARY
set wins name="Local Area Connection" source=dhcp
popd
# End of interface IP configuration
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.