|
|
|
| Web Hosting Guide |
Shut Down, Restart, Log Off XP Using A Batch File, Undocumented feature for XP |
Mar 24 2005, 04:55 AM
Post
#11
|
|
|
To Err Is Human, To Forgive Divine Group: Members Posts: 558 Joined: 24-December 04 From: http://www.ultimatekayakfishing. com/ Member No.: 1,871 |
How to shutdown a XP Pro computer when you are connected using RDC (Remote Desktop Connection) using a batch file or RPC (Remote Procedure Command) This is useful if you can't get to the computer but have remote access to the computer via a network or the internet.
First To show you what you will see at a command prompt (command.com) when you type: "shutdown /?" Without the " " on each end. CODE c:\>shutdown /? Usage: SHUTDOWN [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c omment"] [-d up:xx:yy] No args Display this message (same as -?) -i Display GUI interface, must be the first option -l Log off (cannot be used with -m option) -s Shutdown the computer -r Shutdown and restart the computer -a Abort a system shutdown -m \\computername Remote computer to shutdown/restart/abort -t xx Set timeout for shutdown to xx seconds -c "comment" Shutdown comment (maximum of 127 characters) -f Forces running applications to close without warning -d [u][p]:xx:yy The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536) This is an undocumented feature in XP so I have not found any writeup about it on M$ and everything used here is from other sources. Do not use "cmd" to start the command interpreter (cmd.exe), but type "command" for (command.com. Now you can shutdown the computer by typing "shutdown -s" or to restart the computer type "shutdown -r" To create a batch file for this you can use notepad, and save the file as .bat in c:\ (root directory) Here are the 3 most used batch files for shutdown: 1 save as down.bat CODE shutdown -s 2 save as restart.bat CODE shutdown -r 3 save as forcedown.bat CODE shutdown -f 4 save as logoff.bat CODE shutdown -l 5 save as rpcdown.bat (replace computername with the name of your computer CODE shutdown -s -m \\computername and this last one is fun in an enviroment using RPC So that's a piece of cake, the other options are self explanatory and if you need any help creating the batch file, ask and someone will help Nils |
|
|
|
Posts in this topic
NilsC Shut Down, Restart, Log Off XP Using A Batch File Mar 24 2005, 04:55 AM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Nov 1 2007, 08:04 AM
lazlo Hello,
I did a Google search to find some batch co... Dec 4 2007, 02:41 PM
levimage Hey, I Got some questions for you guys cause I fix... Dec 5 2007, 01:56 AM
polarysekt what about one of the scripting engines.... like V... Dec 5 2007, 04:43 AM
lazlo QUOTE(polarysekt @ Dec 4 2007, 09:43 PM) ... Dec 5 2007, 09:16 AM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Dec 7 2007, 04:40 PM
isanetwork QUOTE(NilsC @ Mar 24 2005, 04:55 AM) 2400... Dec 24 2007, 01:55 PM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Jan 20 2008, 10:47 PM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Feb 9 2008, 03:18 AM
J.C. You can also play a hilarious prank with this.
... Mar 18 2008, 11:38 PM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Mar 24 2008, 09:50 PM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Apr 1 2008, 10:20 PM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Jun 11 2008, 07:59 PM
FeedBacker Shut Down, Restart, Log Off XP Using A Batch File Jun 25 2008, 01:03 AM
(G)Cxc Project Shut Down, Restart, Log Off XP Using A Batch File Dec 29 2008, 04:42 AM
(G) Shut Down, Restart, Log Off XP Using A Batch File Apr 17 2009, 04:39 AM
(G)Imran Ahmad Shut Down, Restart, Log Off XP Using A Batch File Apr 28 2009, 02:21 PM
ghoblin Remote shutdown not work. why?
Please help me. Jun 4 2009, 04:05 AM
(G)Jones Smith Shut Down, Restart, Log Off XP Using A Batch File Jun 23 2009, 02:20 AM
magstuar Here you can find a free software tool for easy m... Jun 25 2009, 03:50 AM
(G)Rahmathullah Shut Down, Restart, Log Off XP Using A Batch File Jul 29 2009, 08:52 AM
(G)lulz Shut Down, Restart, Log Off XP Using A Batch File Oct 17 2009, 02:28 PM
(G)topcathunter Shut Down, Restart, Log Off XP Using A Batch File Nov 20 2009, 12:15 PM
(G)Mantvis Shut Down, Restart, Log Off XP Using A Batch File Jan 7 2010, 01:17 AM![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
23 | curare | 10,766 | 18th March 2010 - 07:01 AM Last post by: iG-Faisal |
|||
![]() |
18 | vicky99 | 7,579 | 24th February 2010 - 08:16 PM Last post by: iG-ivmai |
|||
![]() |
5 | jackpinerepublic | 4,394 | 19th February 2010 - 02:04 AM Last post by: iG-Simon Varley |
|||
![]() |
17 | rapco | 9,929 | 12th February 2010 - 06:48 AM Last post by: iG-Sanjaya |
|||
![]() |
15 | PureHeart | 11,913 | 10th February 2010 - 08:02 PM Last post by: iG-khadeer |
|||
![]() |
14 | jedipi | 7,771 | 10th February 2010 - 05:47 PM Last post by: iG-keith |
|||
![]() |
12 | Nqon | 4,599 | 9th February 2010 - 02:46 PM Last post by: iG- |
|||
![]() |
22 | muazamali | 8,911 | 9th February 2010 - 04:18 AM Last post by: topboys |
|||
![]() |
14 | bob3695 | 10,105 | 8th February 2010 - 09:19 PM Last post by: iG-Manish Patel |
|||
![]() |
5 | Jeigh | 3,638 | 3rd February 2010 - 07:16 PM Last post by: iG-Juan |
|||
![]() |
2 | kanade | 729 | 28th January 2010 - 01:06 PM Last post by: iG-pankaj |
|||
![]() |
4 | Shantanu | 2,136 | 19th January 2010 - 02:23 AM Last post by: iG-lei |
|||
![]() |
15 | Grafitti | 6,721 | 18th January 2010 - 03:59 AM Last post by: iG-ohhellnaw |
|||
![]() |
35 | szupie | 13,549 | 13th January 2010 - 04:50 AM Last post by: iG- |
|||
![]() |
34 | RGF | 8,937 | 11th January 2010 - 07:10 PM Last post by: iG-Krish |
|||
|
Lo-Fi Version | Time is now: 21st March 2010 - 03:30 PM |
© 2010 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation


Mar 24 2005, 04:55 AM







