Help | Site Map
Connecting Tech Pros Worldwide
Closed Thread
 
LinkBack Thread Tools
  #1  
Old January 25th, 2007, 12:51 PM
Newbie
 
Join Date: Jan 2007
Posts: 13
Default DOS Shutdown command

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.
  #2  
Old January 26th, 2007, 07:44 PM
bartonc's Avatar
Site Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Age: 45
Posts: 6,399
Default

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
  #3  
Old January 26th, 2007, 11:36 PM
Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 591
Default

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!
  #4  
Old January 27th, 2007, 03:49 AM
Newbie
 
Join Date: Jan 2007
Posts: 13
Default

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
  #5  
Old January 27th, 2007, 03:51 AM
Newbie
 
Join Date: Jan 2007
Posts: 13
Default

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
  #6  
Old January 27th, 2007, 06:11 AM
bartonc's Avatar
Site Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Age: 45
Posts: 6,399
Default

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.
  #7  
Old January 27th, 2007, 09:57 PM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Age: 48
Posts: 11,806
Default

Are tsshutdn and shutdown available as standard on all Windows NT based OSs?
  #8  
Old January 27th, 2007, 11:51 PM
bartonc's Avatar
Site Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Age: 45
Posts: 6,399
Default

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.
  #9  
Old January 28th, 2007, 12:20 PM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Age: 48
Posts: 11,806
Default

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.
  #10  
Old February 1st, 2007, 07:01 AM
Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 591
Default

Barton great job on this thread!
  #11  
Old February 1st, 2007, 07:41 AM
bartonc's Avatar
Site Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Age: 45
Posts: 6,399
Default

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.
  #12  
Old February 1st, 2007, 07:48 AM
Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 591
Default

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.
  #13  
Old February 1st, 2007, 08:00 AM
Newbie
 
Join Date: Jan 2007
Location: Maasin, Philippines
Age: 22
Posts: 17
Default

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.
  #14  
Old February 1st, 2007, 08:01 AM
Cyberdyne's Avatar
Moderator
 
Join Date: Sep 2006
Location: Los Angeles, CA
Posts: 591
Default

Or by Pressing F1 at any given time =)
  #15  
Old February 1st, 2007, 08:41 AM
Member
 
Join Date: Jan 2007
Posts: 69
Default

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

???
  #16  
Old February 1st, 2007, 10:59 AM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Age: 48
Posts: 11,806
Default

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).
  #17  
Old February 1st, 2007, 11:42 AM
Member
 
Join Date: Jan 2007
Posts: 69
Default

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).
  #18  
Old February 1st, 2007, 12:48 PM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Age: 48
Posts: 11,806
Default

Not a problem. I hope it helps you :)
  #19  
Old February 2nd, 2007, 04:07 PM
Familiar Sight
 
Join Date: Jan 2007
Posts: 155
Default

Sir,
I am using Win 98. But i can't shutdown my sys from command. Can i ??
  #20  
Old February 2nd, 2007, 07:25 PM
bartonc's Avatar
Site Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Age: 45
Posts: 6,399
Default

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.
  #21  
Old February 6th, 2007, 04:52 AM
TheMadMidget's Avatar
Member
 
Join Date: Oct 2006
Posts: 98
Default

I've found
ECHO G=FFFF:0000 ¦ DEBUG
to restart any version of DOS I've used
  #22  
Old February 6th, 2007, 09:21 PM
bartonc's Avatar
Site Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Age: 45
Posts: 6,399
Default

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

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles