Eve 1k Questions 5 Answers 1 Best Answer 60 Points View Profile Eve Asked: July 6, 20202020-07-06T12:12:58+05:30 2020-07-06T12:12:58+05:30In: Computers How do I restart a remote desktop computer from command line? Hi, How can I restart or reboot another Windows computer using the command prompt?? windows Share Facebook Related Questions How to set Notepad++ to be always on top? How to delete a directory or folder from the command line? 1 Answer Voted Recent CrazyMan 17 Questions 1k Answers 1k Best Answers 44k Points View Profile Best Answer CrazyMan Guru 2020-07-06T12:38:04+05:30Added an answer on July 6, 2020 at 12:38 pm A remote desktop computer running on the Windows OS can be easily restarted using the command prompt. There are two ways by which we can restart a remote pc from the command line. The only thing required is – you should be an authorized user of that remote desktop i.e., you need to have the administrator access. Let’s discuss how to restart a remote desktop computer from the command line. To restart a remote computer from the command line The first and foremost thing you will have to do is launch the cmd. In order to do so, press the Windows Logo Key on your keyboard and type cmd in the search bar. You need to right-click on the Command Prompt option and choose the Run as administrator option. With this, the command prompt window will open. Now, follow the steps below in order to restart a remote desktop computer. Step 1 In the command prompt window, type and run the below command – shutdown /m \\remotecomputername /r Here, you will have to replace “remotecomputername” with the name of the computer that you want to remotely restart or reboot. Step 2 Only follow this step if you want to close all the programs and apps that are running on the remote desktop before the restart is processed. This command will force close all the tasks. So, it’s highly important to inform the user of that remote computer so that he/she can save the work resulting in no loss of data. shutdown /m \\remotecomputername /r /f Step 3 Only follow this step if you want to send a special message to the user who is currently working on the remote desktop computer. This message will be useful as it informs the user about the upcoming restart execution. Before the reboot is executed, this message will be displayed to the user for some time. Interestingly, you can also specify the amount of time the message should be displayed. shutdown /m \\remotecomputername /r /f /c "The computer is going to be rebooted" /t 30 Here, 30 is the number of seconds. So, the special message you entered in this command-line switch will be displayed for a period of 30 seconds. You can type the time you want as per your wish. This is how we can easily restart a remote desktop computer from the command line. 2 Share Share Share on Facebook Share on Twitter Share on WhatsApp Share on LinkedIn You must login to add an answer.Continue with FacebookContinue with GoogleContinue with Twitteror use Username or email* Password* Captcha* Remember Me! Forgot Password?