473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

DOS Shutdown command

14
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.
Jan 25 '07 #1
21 63370
bartonc
6,596 Expert 4TB
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
Jan 26 '07 #2
Cyberdyne
627 Expert 512MB
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!
Jan 26 '07 #3
OgaW
14
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
Jan 27 '07 #4
OgaW
14
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
Jan 27 '07 #5
bartonc
6,596 Expert 4TB
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.
Jan 27 '07 #6
NeoPa
32,556 Expert Mod 16PB
Are tsshutdn and shutdown available as standard on all Windows NT based OSs?
Jan 27 '07 #7
bartonc
6,596 Expert 4TB
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.
Jan 27 '07 #8
NeoPa
32,556 Expert Mod 16PB
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 ;)
Here is the XP link. You can google "command line reterence a to z" for others.
Jan 28 '07 #9
Cyberdyne
627 Expert 512MB
Barton great job on this thread!
Feb 1 '07 #10
bartonc
6,596 Expert 4TB
Barton great job on this thread!
I try, but can't fill your shoes while you're away. Thanks, though.
Feb 1 '07 #11
Cyberdyne
627 Expert 512MB
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.
Feb 1 '07 #12
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.
Feb 1 '07 #13
Cyberdyne
627 Expert 512MB
Or by Pressing F1 at any given time =)
Feb 1 '07 #14
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

???
Feb 1 '07 #15
NeoPa
32,556 Expert Mod 16PB
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).
Feb 1 '07 #16
Thnks man!
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).
Feb 1 '07 #17
NeoPa
32,556 Expert Mod 16PB
Not a problem. I hope it helps you :)
Feb 1 '07 #18
rengaraj
168 100+
Sir,
I am using Win 98. But i can't shutdown my sys from command. Can i ??
Feb 2 '07 #19
bartonc
6,596 Expert 4TB
Sir,
I am using Win 98. But i can't shutdown my sys from command. Can i ??
Try this reference for win 98.
Feb 2 '07 #20
I've found
ECHO G=FFFF:0000 ¦ DEBUG
to restart any version of DOS I've used
Feb 6 '07 #21
bartonc
6,596 Expert 4TB
I've found
ECHO G=FFFF:0000 ¦ DEBUG
to restart any version of DOS I've used
Very cool trick! Thanks.
Feb 6 '07 #22

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Duke | last post by:
Here is the block of the sproc that I?ve created. All lines execute fine except for the ?exec master..xp_cmdshell @reboottc?. In order to make this work from the query analyzer I had to set the...
3
by: newsgroups.jd | last post by:
Let me start by saying I am a noob to VB.net and am not a programmer anyways I am trying to learn and would like to get this to work... so please be gentle, If Im doing it wrong please tell me......
3
by: newsgroups.jd | last post by:
Im sure there is a better way to do this - just posting what I did to get it to work. Please feel free to comment with suggestions - this was my first vb.net program and I am not a programmer,...
16
by: diffuser78 | last post by:
I want to write a python program and call OS specific commands in it. So basically, instead of typing in on the command line argument I want to have it in a python program and let it do the action....
3
by: joja15 | last post by:
I am working on a Python script to perform as a remote computer manager. So far I have a WOL function working and I would like to add the ability to show if a machine is on or off (I figured I...
0
by: tyo07 | last post by:
i have tried so many tools,power off,shutdown from dos command,remote shutdown.but it's useless. when i typed shutdown \\aaa bla bla bla..access is denied. my network is like i have one wireless...
3
by: IdleBrain | last post by:
Gurus, I am trying to delay Windows Shutdown/Restart to perfrom cleanup and I am using the following code: protected override void WndProc(ref Message ex)
0
by: lawbaal | last post by:
Here I got 3 computers A,B and C, they are all with windows xp pro running. Above all: I've open the remote force shutdown permission for guest account in all of these three computer. But.... ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.