Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Windows Tutorials»How to Restart Windows Server using Command Line

    How to Restart Windows Server using Command Line

    By RahulMarch 5, 20221 Min Read

    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).

    Advertisement

    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

    Related Posts

    SS Command in Linux (Monitor Network Connections)

    How to use ‘find’ command with ‘xargs’ to parallelize file operations in Linux

    How to find files modified between two dates in Linux

    View 3 Comments

    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

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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