SQLAuthority News – Restart Remote Computer – Shutdown Remote Computer

I often work with multiple computer system. This machines are different machines. When I login using remote desktop to different machine, I often want to restart or shutdown the computer. Remote desktop does not let me shutdown computer when I have remote system as Windows 7. At this time, I walk myself to the physical computer and restart the machine. This is not convenient if I am doing it often.

I recently searched for command prompt solution for the same and I learned it today.

If you are going to say this is so 90s. Well, I am late by 20 years :)

Shutdown the Computer using Command Prompt

shutdown /s

Restart the Computer using Command Prompt

shutdown /r

Well this is very simple but I am glad that I know it.

Reference : Pinal Dave (https://blog.sqlauthority.com)

Solarwinds
Previous Post
SQL SERVER – Vote for My Session in SQL PASS
Next Post
SQL SERVER – Attending MVP Open Day – May 2011

Related Posts

12 Comments. Leave new

  • Pinal,

    I beleive CTRL+ALT+END will act as CTRL ALT DEL on the remote computer.

    Have you tried that combo?

    Reply
  • Hey Pinal,

    Another tip :)

    You can create a new short for desktop and say :

    SHUTDOWN -r -t 01

    or

    SHUTDOWN -s -t 01

    Use it when ever you need.

    -Anup

    Reply
  • Alok Chandra Shahi
    May 14, 2011 9:48 am

    you can also do same using task manager.Just right click on you task bar and select task manager,you will get one “windows Task Manager” dialog. Here you have one menu “shutdown” through this you can shut down,restart,stand by… your any remote system.

    Reply
  • you can also do this without logging on interactively..

    use: shutdown /s /m \MachineName

    Reply
  • hai, i’m a gniit student and i’m working on a project using ADO.NET. and i need a solution. i need a sql query to save details from text box on windows form to my specified columns of my backend table, i’m using c# for the prject.

    please………………..

    sani

    Reply
  • Jason Yousef
    May 14, 2011 6:54 pm

    Pinal check that, that’s the right way to remote restart, shutdown or kill a service.

    https://docs.microsoft.com/en-us/sysinternals/downloads/pstools

    Reply
  • Nakul Vachhrajani
    May 15, 2011 11:57 am

    Hello!
    We use this to remotely restart our Virtual machines that we use on the development & QA environments. Very, very useful – and although it may be something from the 90’s, it has not lost it’s value even today!

    Thanks & Regards,
    Nakul Vachhrajani.
    Be courteous. Drive responsibly.

    Reply
  • u can use

    >shutdown -i

    Reply
  • my sql management is not running. as soon as i type ssms
    i it run for few seonds and closed. that is why i can not restore any database

    Reply
  • Normally I use CNTRL + ALT+ END

    Reply
  • Hi Pinal,

    This is very good to hear about the command prompt commands.

    Is there any commands to operate the SSMS with out using
    GUI, very help full to us.

    Reply

Leave a Reply

Menu