Start / Stop / Enable / Disable Terminal services from command line
by admin on October 13, 2010
We can start Terminal Services by running the command given below.
If the service is already running you will get the message ‘The requested service has already been started. ‘
Sometimes you may get an error that the service could not be started.
This happens when Terminal Services is disabled through registry hack. You can fix this by running the below registry change command.
You need to reboot the computer for the changes to take effect. After reboot terminal services starts automatically or you can start the service using net start command as mentioned above.
How to stop Terminal Services?
Terminal Services can’t be stopped like other services. You get the below error when you attempt the same.
restart Terminal services?
Since Terminal Services can’t be stopped there is no straightforward way we can do this. Microsoft says this is by design. But in some cases restarting terminal services could be possible by killing the svchost process that runs the terminal services.We can use tasklist and taskkill commands for this.
First get the process id of the terminal services process
Check if Terminal services is the only service running in this svchost. If the svchost is shared with other services then you can stop reading further. Restarting terminal services is not possible on your machine.
On my system I have got the following output.
How to disable Terminal Services?
We can run the below command to disable terminal services.
How to enable Terminal Services?Source: www.windows-commandline.com