restart via command line – CRM Kitchen http://crmkitchen.com Microsoft Dynamic CRM Tue, 25 Oct 2016 14:58:06 +0000 en-US hourly 1 https://wordpress.org/?v=4.6.1 How to Restart or Shut Down a Remote Computer via Command Line ? http://crmkitchen.com/restart-shut-remote-computer/ http://crmkitchen.com/restart-shut-remote-computer/#respond Tue, 27 Sep 2016 08:18:52 +0000 http://crmkitchen.com/?p=359 Sometimes I’m not able to use the shutdown or restart function in the Start menu on server. I found it from stackoverflow and I want to put here. The following functions can help us. shutdown -r — restarts shutdown -s — shutsdown shutdown -l — logoff shutdown -t xx — where xx is number of […]

The post How to Restart or Shut Down a Remote Computer via Command Line ? appeared first on CRM Kitchen.

]]>
Sometimes I’m not able to use the shutdown or restart function in the Start menu on server.

I found it from stackoverflow and I want to put here. The following functions can help us.

  • shutdown -r — restarts
  • shutdown -s — shutsdown
  • shutdown -l — logoff
  • shutdown -t xx — where xx is number of seconds to wait till shutdown/restart/logoff
  • shutdown -i — gives you a dialog box to fill in what function you want to use
  • shutdown -a — aborts the previous shutdown command
  • shutdown -h — hibernate.

Additional options:

  • -f — force the selected action

For immideatly restart  : 

  • shutdown -t 0 -r -f

Dont forget ! You must have appropriate privileges to shut down the remote machine.

 

More info :

http://stackoverflow.com/questions/162304/how-do-i-shutdown-restart-logoff-windows-via-a-bat-file

https://technet.microsoft.com/en-us/library/cc770416(v=ws.11).aspx

The post How to Restart or Shut Down a Remote Computer via Command Line ? appeared first on CRM Kitchen.

]]>
http://crmkitchen.com/restart-shut-remote-computer/feed/ 0