Connecting Tech Pros Worldwide Forums | Help | Site Map

DOS Shutdown command

Newbie
 
Join Date: Jan 2007
Posts: 13
#1: Jan 25 '07
Hey,

IS there anyone know the secret command to issue a shutdown within DOS mode without a Windows program covering above it? Won't simply just click the power off button causes total damage the motherboard within DOS mode?

Urgently need your help?

Thanks in advance.

bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#2: Jan 26 '07

re: DOS Shutdown command


Quote:

Originally Posted by OgaW

Hey,

IS there anyone know the secret command to issue a shutdown within DOS mode without a Windows program covering above it? Won't simply just click the power off button causes total damage the motherboard within DOS mode?

Urgently need your help?

Thanks in advance.

Shutdown
Allows you to shut down or restart a local or remote computer. Used without parameters, shutdown will logoff the current user.

Syntax
shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"] [-d[u][p]:xx:yy]

Parameters
-l
Logs off the current user, this is also the defualt. -m ComputerName takes precedence.
-s
Shuts down the local computer.
-r
Reboots after shutdown.
-a
Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.
-f
Forces running applications to close.
-m [\\ComputerName]
Specifies the computer that you want to shut down.
-t xx
Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
-c "message"
Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.
-d [u][p]:xx:yy
Lists the reason code for the shutdown. The following table lists the different values. Value Description
u Indicates a user code.
p Indicates a planned shutdown code.
xx Specifies the major reason code (0-255).
yy Specifies the minor reason code (0-65536).

/?
Displays help at the command prompt.
Remarks
If you indicate a major and minor reason code, you must first define these reason codes on each computer for which you plan to use the particular reason. If the reason codes are not defined on the target computer, Event Viewer cannot log the correct reason text.
Examples
To shut down \\MyServer in 60 seconds, force running applications to close, restart the computer after shutdown, indicate a user code, indicate that the shutdown is planned, log major reason code 125, and log minor reason code 1, type:

shutdown -r -f -m \\MyServer -t 60 -d up:125:1
Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 596
#3: Jan 26 '07

re: DOS Shutdown command


I also like to mess with my friends and use a quick run command which can also be used in dos, simply type in tsshutdn and hit enter =) Watch the PC turn off in 60 seconds warning the user about shutdown at about 30 seconds. Knowledge is power, share it and grow!
Newbie
 
Join Date: Jan 2007
Posts: 13
#4: Jan 27 '07

re: DOS Shutdown command


Quote:

Originally Posted by Cyberdyne

I also like to mess with my friends and use a quick run command which can also be used in dos, simply type in tsshutdn and hit enter =) Watch the PC turn off in 60 seconds warning the user about shutdown at about 30 seconds. Knowledge is power, share it and grow!

Hi,

This cmd doesn't work in dos above a Win2k OS?

NEither is the shutdown cmd works in win2k?

Pls further elaborate in details. tnx
Newbie
 
Join Date: Jan 2007
Posts: 13
#5: Jan 27 '07

re: DOS Shutdown command


Anyone,

This shutdown cmd don't work in my win2k OS dos mode when the OS crash and i need to shutdown within dos?


Pls advice in details
tnx
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#6: Jan 27 '07

re: DOS Shutdown command


Quote:

Originally Posted by OgaW

Anyone,

This shutdown cmd don't work in my win2k OS dos mode when the OS crash and i need to shutdown within dos?


Pls advice in details
tnx

If the OS has crashed, then you must want to PowerDown from DOS (turn off all power and maybe reboot). If this is the case and you need this because the power switch on the front wont do this, you may need to change the way the BIOS treats the power switch.

Issue:

How to restart or shut down the computer in DOS.

Cause:

It may be necessary for changes to become active that the computer be restarted.

Solutions:

Unlike Windows, to restart or shut down the computer in MS-DOS it does not require any steps or programs to be run.

If you are currently in DOS and need to restart the computer, press the CTRL + ALT + DEL keys.

If you are currently in DOS and need to turn off the computer press the power button. Note: some newer computers may not allow the computer to be shut down unless the power button is held in for a few seconds.

Warning: If you are running a DOS or MS-DOS shell from Windows it is important that you do not follow the above instructions. Instead type exit to return to Windows and then restart or shut down Windows from Windows.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,730
#7: Jan 27 '07

re: DOS Shutdown command


Are tsshutdn and shutdown available as standard on all Windows NT based OSs?
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#8: Jan 27 '07

re: DOS Shutdown command


Quote:

Originally Posted by NeoPa

Are tsshutdn and shutdown available as standard on all Windows NT based OSs?

Here is the XP link. You can google "command line reterence a to z" for others.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,730
#9: Jan 28 '07

re: DOS Shutdown command


Quote:

Originally Posted by NeoPa

Are tsshutdn and shutdown available as standard on all Windows NT based OSs?

I can answer my own question by simply trying "SHUTDOWN /?" & TSSHTDN /?" from a command line :embarrassed:
I found them both available as standard in my XP build at home. I don't believe I installed any extras on here (hard to remember precisely which machines I installed what on).

BTW Don't miss Barton's helpful link just because I was dithering ;)
Quote:

Originally Posted by bartonc

Here is the XP link. You can google "command line reterence a to z" for others.

Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 596
#10: Feb 1 '07

re: DOS Shutdown command


Barton great job on this thread!
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#11: Feb 1 '07

re: DOS Shutdown command


Quote:

Originally Posted by Cyberdyne

Barton great job on this thread!

I try, but can't fill your shoes while you're away. Thanks, though.
Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 596
#12: Feb 1 '07

re: DOS Shutdown command


I know thanks for helping me out, I got a bike (2005 yamaha yzf 600r) over the weekend and you know how little kids are with their toys... sigh.
Newbie
 
Join Date: Jan 2007
Location: Maasin, Philippines
Posts: 17
#13: Feb 1 '07

re: DOS Shutdown command


Quote:

Originally Posted by OgaW

Hey,

IS there anyone know the secret command to issue a shutdown within DOS mode without a Windows program covering above it? Won't simply just click the power off button causes total damage the motherboard within DOS mode?

Urgently need your help?

Thanks in advance.


You can get more information in ms windows HELP AND SUPPORT in the start menu.
Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 596
#14: Feb 1 '07

re: DOS Shutdown command


Or by Pressing F1 at any given time =)
Member
 
Join Date: Jan 2007
Posts: 69
#15: Feb 1 '07

re: DOS Shutdown command


Quote:

Originally Posted by Cyberdyne

Barton great job on this thread!

by the way... I know you need to be Admin to use

shutdown

command, is it the same for

tsshutdn

???
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,730
#16: Feb 1 '07

re: DOS Shutdown command


Yes.
You need to be logged in as an account that has Admin rights on the destinaton machine, or a matching account with the same password (This is more usual when on a WorkGroup rather than a domain).
Member
 
Join Date: Jan 2007
Posts: 69
#17: Feb 1 '07

re: DOS Shutdown command


Thnks man!
Quote:

Originally Posted by NeoPa

Yes.
You need to be logged in as an account that has Admin rights on the destinaton machine, or a matching account with the same password (This is more usual when on a WorkGroup rather than a domain).

NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,730
#18: Feb 1 '07

re: DOS Shutdown command


Not a problem. I hope it helps you :)
Familiar Sight
 
Join Date: Jan 2007
Posts: 168
#19: Feb 2 '07

re: DOS Shutdown command


Sir,
I am using Win 98. But i can't shutdown my sys from command. Can i ??
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#20: Feb 2 '07

re: DOS Shutdown command


Quote:

Originally Posted by rengaraj

Sir,
I am using Win 98. But i can't shutdown my sys from command. Can i ??

Try this reference for win 98.
TheMadMidget's Avatar
Member
 
Join Date: Oct 2006
Posts: 98
#21: Feb 6 '07

re: DOS Shutdown command


I've found
ECHO G=FFFF:0000 ¦ DEBUG
to restart any version of DOS I've used
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#22: Feb 6 '07

re: DOS Shutdown command


Quote:

Originally Posted by TheMadMidget

I've found
ECHO G=FFFF:0000 ¦ DEBUG
to restart any version of DOS I've used

Very cool trick! Thanks.
Closed Thread