DOS Shutdown command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • OgaW
    New Member
    • Jan 2007
    • 14

    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.
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    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

    Comment

    • Cyberdyne
      Recognized Expert Contributor
      • Sep 2006
      • 627

      #3
      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!

      Comment

      • OgaW
        New Member
        • Jan 2007
        • 14

        #4
        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

        Comment

        • OgaW
          New Member
          • Jan 2007
          • 14

          #5
          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

          Comment

          • bartonc
            Recognized Expert Expert
            • Sep 2006
            • 6478

            #6
            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.

            Comment

            • NeoPa
              Recognized Expert Moderator MVP
              • Oct 2006
              • 32633

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

              Comment

              • bartonc
                Recognized Expert Expert
                • Sep 2006
                • 6478

                #8
                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.

                Comment

                • NeoPa
                  Recognized Expert Moderator MVP
                  • Oct 2006
                  • 32633

                  #9
                  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 ;)
                  Originally posted by bartonc
                  Here is the XP link. You can google "command line reterence a to z" for others.

                  Comment

                  • Cyberdyne
                    Recognized Expert Contributor
                    • Sep 2006
                    • 627

                    #10
                    Barton great job on this thread!

                    Comment

                    • bartonc
                      Recognized Expert Expert
                      • Sep 2006
                      • 6478

                      #11
                      Originally posted by Cyberdyne
                      Barton great job on this thread!
                      I try, but can't fill your shoes while you're away. Thanks, though.

                      Comment

                      • Cyberdyne
                        Recognized Expert Contributor
                        • Sep 2006
                        • 627

                        #12
                        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.

                        Comment

                        • estillore
                          New Member
                          • Jan 2007
                          • 17

                          #13
                          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.

                          Comment

                          • Cyberdyne
                            Recognized Expert Contributor
                            • Sep 2006
                            • 627

                            #14
                            Or by Pressing F1 at any given time =)

                            Comment

                            • diSangro
                              New Member
                              • Jan 2007
                              • 69

                              #15
                              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

                              ???

                              Comment

                              Working...