9/9/2023 0 Comments Remote reboot windows 10Just list all the computers you want in a text file and add that to the PowerShell command. This is handy if you have several computers to restart. Stop-Computer -ComputerName REMOTE_COMPUTER_NAME -Force Example 3: Use PowerShell to restart a list of computers Use the -Force to force a shutdown even if a user is logged on. This command will shutdown a remote computer. Restart-Computer -ComputerName REMOTE_COMPUTER_NAME -Force Example 2: Use PowerShell to shutdown a computer The -Force option will force a restart even if a user is logged on. This command will immediately restart a remote computer. Example 1: Use Powershell to restart a computer There is no option to prompt users with a custom message or provide a countdown. The downside to PowerShell is it doesn’t have as many options as the shutdown command. Here are a few examples of how you can restart or shutdown computers with PowerShell. shutdown /l /m\\pc2 Restart or Shutdown the Computer with Powershell If you just want to log a user off the remote computer use this command. If you want a longer countdown just specify the seconds /t 60 Example 4: Log user off the remote computer If you want to immediately restart with no countdown or message use this command. Example 3: Immediate Restart no Countdown shutdown /m \\pc2 /c "The IT department has initiated a remote restart on your computer"īelow is the pop up on the remote computer with the custom message. You may want to display a custom message to the logged on users, to do that just use the /c command. The pop up below is what a Windows 10 system will display. Example 1: Restart Remote Computerīy default, this will prompt the remote computer and give it about a minute before it restarts. I’ll be using the /r switch in these examples, you can change them to /s to shutdown instead of restart. In these examples, I’ll be on PC1 and will initiate a remote restart or shutdown on PC2. Restart or Shutdown Examples with Command Line Remote Desktop Connection Manager | Remote Session Tools c “comment” – Message to display on the screen before restart or shutdown t xxx – Set the time out period before shutdown to xxx seconds m \\computer – Specify the remote computer There are several command line switches, below I list the most useful options. To view the full list of command options type shutdown /? in the CMD window. To use this command just open the windows command prompt and type shutdown. Windows systems have a built in shutdown command that can be used to restart or shutdown local and remote computers. The first method uses a built in Windows command and the second method uses PowerShell.Ĭheck it out. In this tutorial, I’ll show you two easy methods for rebooting and shutting down remote computers. Enter the command Shutdown /? to bring up the syntax and options in the command prompt window.There will be times as a Windows Administrator when you will need to reboot or shutdown a remote computer or server. You can perform some more advanced functions such as remote logoff or hibernation by using the command line interface instead of the GUI. Enter the shutdown reason and add a comment, if desired.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |