Discussion Locked

Schudule System shut down in WinXp

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi!
I have a query regarding the Command with complete parameters required for executing the process of orderly/proper shut down of system at certain scheduled time in WinXp OS. I hope it is somewhat related with tsshutdn.exe. Thanking in advancehsyed

4 replies

by draegor

Go to www.microsoft.com , choose support and click on the search knowledge base. Tell it to search on
tsshutdn.exe in all products. There are about 50 hits, but about the 5th one down gives a full description of the options. Hope this helps.

by joseph moore

Tsshutdn.exe
Tsshutdn.exe shuts down a Terminal Server in a controlled manner.

Syntax for Tsshutdn.exe:
TSSHUTDN [wait_time] [/SERVER:servername] [/REBOOT] [/POWERDOWN]
[/DELAY:logoffdelay] [/V]

wait_time Seconds to wait after user notification before
terminating all user sessions (default is 60).
/SERVER:servername The server to shut down (default is current).
/REBOOT Reboot the server after user sessions are terminated. /POWERDOWN The server prepares for powering off.
/DELAY:logoffdelay Seconds to wait after logging off all connected
sessions (default is 30).
/v Display information about actions being performed.

Example: tsshutdn 60 /server:cprsrv02 /reboot /delay:30 /v

by joseph moore

But I don't think you want to use TSSHUTDN.EXE on an XP box.
Try PSSHUTDOWN from Sysinternals:

http://www.sysinternals.com/ntw2k/freeware/pstools.shtml

You can use PsShutdown to initiate a shutdown of the local or a remote computer, logoff auser, lock a system, or to abort an imminent shutdown.

usage: psshutdown [-u username [-p password]] [[-s | -r | -k [-t nn][-m "message"][-f]] -a | -l | -o] [\\computer]
-? Displays the supported options.
-a Aborts a shutdown (only possible while a countdown is in progress)
-f Forces all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data
-k Poweroff the computer (reboot if poweroff is not supported)
-l Lock the computer
-m This option lets you specify a message to display to logged-on users when a shutdown countdown commences
-o Logoff the console user
-r Reboot after shutdown
-s Shutdown without poweroff
-t Specifies the countdown in seconds until the shutdown (default: 20 seconds)
-u Specifies optional user name for login to remote computer
-p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
\\computer Shutdown the computer specified

by sabatogz

XP has a new command line tool called "Shutdown" see "help" for more info. Run a Scheduled Task to run this application at a certain time and or date.

This discussion is closed to new replies.