Looks like you can change settings using the netsh command (
http://www.petri.co.il/configure_tcp_ip_from_cmd.htm ) .
You should be able to use the "psexec" command from
http://www.sysinternals.com/Utilities/PsExec.html to execute the command on the remote machine (psexec is run from your machine, but it can start and control command line and text based programs on another machine - just redirects the text output to your machine).
However, you can use the SC command to control services (including deletion).