I would like to run a batch file that could open the services window and allows me to connect to another computer in order to restart a service on a remote machine. And a different batch file to remote a network registry located in the same domain.
Here are the steps that I'm trying to do using a batch file :
- open "services.msc"
- connect to another computer...
- select computer name (I will then type the computer name manually)
- net start RemoteRegistry + Select Startup type to "Automatic"
- open "regedit"
- GO to File > Connect Network Registry > enter computer name (I will then type the computer name manually once again)
- modify the following key : HKEY_Local_Machine>System>CurrentControlSet>services>LanManServer>Parameters
to [0] disable or [1] enable
- Restart "Server" services
Type
sc /?
. This is built in to Windows. At it's most simpleRegistry (
reg /?
) is the same but the computer name is part of the registry path.