Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: ,

Sponsored Links



How to Stop Terminal Services

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-07-2009
Member
 
Join Date: Jan 2009
Posts: 85
How to Stop Terminal Services

hie friends,

I want to stop terminal services. When I am entering NET STOP "Terminal Services", it says - The requested pause or stop is not valid for this service.

What should I do ? Can anybody please suggest me how to stop terminal services...!!
Reply With Quote
  #2  
Old 09-07-2009
Shen's Avatar
Member
 
Join Date: May 2008
Posts: 2,918
Re: How to Stop Terminal Services

You first need to tell your backup application to skip open files. Any files that users have open aren't relevant for backup purposes.
The commands you need to stop terminal services are listed below. These commands allow you to configure the server to :
stop accepting logons,
send warning messages to those still logged in
log-off those users who remain logged in.

Change logon , Change port , Change user , Cprofile , Flattemp , Logoff , Msg , Mstsc , Query process , Query session , Query termserver , Query user , Register , Reset session , Shadow , Tscon , Tsdiscon , Tskill , Tsprof , Tsshutdn
Reply With Quote
  #3  
Old 09-07-2009
Snake08's Avatar
Member
 
Join Date: Apr 2008
Posts: 3,328
Re: How to Stop Terminal Services

psexec is a free tool from Sysinternals

To stop Terminal Services remotely, run :

psexec \\servername net stop "terminal services"


To start Terminal Services remotely, run :

psexec \\servername net start "terminal services"
Reply With Quote
  #4  
Old 09-07-2009
Zachary's Avatar
Member
 
Join Date: Jan 2006
Posts: 3,932
Re: How to Stop Terminal Services

In application mode you cannot Stop/Start the Terminal service without rebooting. To reboot remotely, use shutdown.exe tool.

Shutdown.exe uses the following syntax:
shutdown \\computername /l /a /r /t:xx "msg" /y /c

You can use the following switches with Shutdown.exe:

\\computername: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used.

/l (Note that this is a lowercase "L" character): Use this switch to shut down the local computer.

/a: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored.

/r: Use this switch to restart the computer instead of fully shutting it down.

/t:xx: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds.

"msg": Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127.

/y: Use this switch to force a "yes" answer to all queries from the computer.

/c: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved.
Reply With Quote
  #5  
Old 09-07-2009
Steve123's Avatar
Member
 
Join Date: Feb 2008
Posts: 2,619
Re: How to Stop Terminal Services

Here are some of the variants you can use with shutdown.exe command :
  • To shut down the local computer in two minutes and display a "The computer is shutting down" message, use the following line in a batch file or type it at a command prompt, and then press ENTER:
    shutdown /l /t:120 "The computer is shutting down" /y /c

  • To cancel the shutdown process, type the following line at the command prompt, and then press ENTER:
    shutdown /l /a /y

  • To shut down and restart a remote computer named "Support," use the following line in a batch file or type it at a command prompt, and then press ENTER:
    shutdown \\support /r

  • To schedule the local computer to shutdown and restart at 10:00 P.M., type the following line at a command prompt, and then press ENTER:
    at 22:00 shutdown /l /r /y /c
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Stop Terminal Services"
Thread Thread Starter Forum Replies Last Post
Terminal Services 2000 storlogic Active Directory 1 14-06-2010 06:49 PM
Scanning with terminal services TWEEK#1 Windows Software 3 10-02-2010 06:34 AM
net stop terminal services not working Amaresh Operating Systems 3 08-06-2009 10:48 PM
Terminal Services and AD jeena Active Directory 0 04-03-2009 11:50 AM
XP without Terminal Services Laurent Windows XP Support 3 14-12-2008 04:21 AM


All times are GMT +5.5. The time now is 05:47 AM.