Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Windows Tutorials»How to Restart Windows Server using Command Line

    How to Restart Windows Server using Command Line

    RahulBy RahulJanuary 1, 20151 Min ReadUpdated:March 5, 2022

    Generally, most of the users used GUI access for accessing remote or local Windows systems. In some cases, we don’t get system restart button in GUI but we still can restart the remote server using the command line. This article will help you to reboot Windows system using command prompt (CLI).

    Command to Restart Windows Server

    Simply use /r switch with shutdown command to reboot windows server using command line. Here are various examples of restart Windows systems via command line.

    • Use below command restart local Windows system:
      shutdown /r 
      
    • Restart local system with forcefully close running applications using /f command line switch.
      shutdown /r /f 
      
    • Restart remote system by specifying system hostname with /m command line switch.
      shutdown /r /f /m \\REMOTE-PC 
      
    • Add a comment as reason of rebooting system suing /c command line switch.
      shutdown /r /f /m \\REMOTE-PC /c "Post Installing Software" 
      

    Conclusion

    Restarting a Windows server is very easy with GUI interface, but in some case, you will not get reboot button, specially on remote systems. This tutorial helps you to restart a Windows system via command line interface.

    command reboot shutdown
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Shutdown or Reboot Linux using Command Line
    Next Article How to Add RPMForge Yum Repository in CentOS/RHEL 7/6/5

    Related Posts

    How to Start & Stop Windows Service via Command Line

    Updated:March 29, 20222 Mins Read

    How to Change Windows Hostname (Computer Name)

    Updated:March 11, 20223 Mins Read

    How To Install NVM on Windows

    Updated:April 16, 20223 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    (Resolved) -bash: /bin/mv: Argument list too long

    Updated:January 13, 20222 Mins Read

    Tee Command in Linux with Examples

    4 Mins Read

    3 Comments

    1. Jeevesh on December 2, 2021 4:29 am

      Just read your Comments…very useful and understandable….

      Reply
    2. Brandon on December 20, 2018 8:48 pm

      should be \\REMOTE-PC

      Reply
    3. reuben fernandes on January 23, 2018 8:09 am

      very nice article , and simple to understand .

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    • (Resolved) Please install all available updates for your release before upgrading
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.