Remote shutdown and Restart in Vista

Posted on 2007-08-05
Last Modified: 2009-03-16
I am using Remote Desktop on Vista and cannot figure out how to restart the host computer from my remote location. In Xp i used to use the task manager that was in the system32 folder, but shut down is now an option in the new task manager on Vista. Can anyone help with this? I can give more detail if necessary.
Question by:rudodoo
    LVL 19

    Expert Comment


    Usage: shutdown.exe [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d u

            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)

    Author Comment

    I guess i am just not getting something right here. If my computer is named "HOMESERVER" then what would I type to make it restart immediately? Every time i try to put in something,it brings up a prompt box for a very brief time and then it disappears.
    LVL 19

    Accepted Solution

    remember "shutdown -a" stops the command, this comes in handy if you accidentally start it on your pc

    try the following
    shutdown -r -m \\homeserver -t 1
    LVL 7

    Expert Comment


    You don't even need the computer name option.  When you are logged into the remote computer, open the run dialog box on the remote machine.  Windows Key +R should work, or you can add it to your start menu.  Type CMD to open command prompt.  Then type shutdown -r -f


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    sbs 2011 6 13
    PowerShell Script failing 3 36
    Help with computer errors 18 112
    Utilities to reset local Win 7 passwords 21 116
    This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
    The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
    Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now