/t – Set a timeout period before performing shutdown.įor example, to restart a remote computer named CLOUD-9GA5IF08G, run the following command: shutdown /r /m \\CLOUD-9GA5IF08G./c – Display a message on the screen before performing restart or shutdown.There are several options available that you can run with the shutdown command: The basic syntax to perform a remote shutdown is shown below: shutdown \\remote-pc-name Windows also provide a native shutdown command-line utility that allows you to shut down and restarts a remote computer. Shut Down a Remote Computer Using a Native Windows Shutdown Command To restart a remote computer, run the following command: PsExec.exe \\CLOUD-9GA5IF08G shutdown /r The basic syntax to perform a remote shutdown is shown below: PsExec.exe \\remote-pc-name shutdown /sįor example, to shut down a remote computer named CLOUD-9GA5IF08G, run the following command: PsExec.exe \\CLOUD-9GA5IF08G shutdown /s You can now start running PsExec.exe on the remote computer. Next, open the Windows Command prompt and navigate to the PsTools folder. Once the file is downloaded, extract the files from the PsTools.zip download. You can download the PsExec on the computer from which you will need to perform the remote shutdown. Also, both computers belong to the same Workgroup. To use this tool, file and printer sharing must be enabled on local and remote computers. By default, PsExec is not installed on any Windows operating system. PsExec is a portable tool by Microsoft that allows you to run commands on the remote computer using the user's credentials. How to Shutdown a Remote Computer Using PsExec Step 6 – Scroll down and find the “ Windows Management Instrumentation (WMI)” then enable it and click on the OK button to apply the changes. Step 5 – Click Allow an app through Windows Firewall. To do so, open the Windows firewall as shown below: Step 4 – Next, you will also need to allow remote shutdown in the Windows firewall. Then, click on the OK button to save the changes. Step 3 – Click on the Startup type drop-down menu and select Automatic. Step 2 – Scroll down and right-click on Remote Registry, then select the properties icon. This will open the Windows service manager as shown below: Step 1 – Press the Windows R key, type services.msc, and click on the OK button. To allow the remote shutdown, perform the following steps on all target computers: You will also need to configure the target computer to allow the remote shutdown. How To Enable Remote Shutdownīefore performing remote shutdown, all computers must be in the same network, and all should have one common administrative account. In this post, we will show you how to shut down or restart a Windows computer remotely. However, Windows has some in-built tools that allow you to shut down or restart a computer remotely. There are several tools available to manage and shut down the Windows system remotely. In that case, there will be times that you will need to restart or shut down a remote computer or server. If we need to restart instead, we can simply add the right argument to the shutdown command.Suppose you are a Windows System Administrator and responsible for managing remote computers. The above commands are for shutting down computers. SUCCESS: The scheduled task "auto shutdown my computer daily" has successfully been created. schtasks C:\>schtasks /create /sc daily /tn "auto shutdown my computer daily" /tr "shutdown -s" /st 23:00.Below you can see example commands to schedule shutdown at 11pm every day. We can use either at or schtasks for this. Schtasks /create /sc once /tn "auto shutdown my computer" /tr "shutdown -s" /st 15:30īelow I show you how to schedule automatic shutdown daily. In this case, you can exit the command prompt as the command is scheduled where as with ‘sleep’ you need to keep the window open. Let’s say the current time is 1pm and you want to shutdown after 2.5 hours. Here we need to specify the exact time the command should run at.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |