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.
3 Comments
Just read your Comments…very useful and understandable….
should be \\REMOTE-PC
very nice article , and simple to understand .