9/3/2023 0 Comments Turn on computer remotely![]() ![]() It is often a server or virtual server environment in many business use-cases. ![]() However, the host device does not have to be a PC. on that PC without going into the office. How Remote Desktop WorksĪ basic example of Remote Desktop is connecting your home laptop to your office PC so you can access files, run applications, print documents, etc. Users can then control and use the applications and files on the host device from anywhere. Remote Desktop is a client application that allows a “client” computer to connect to a “host” computer from a remote location. If you have ever been on a tech support call and the technician takes over your mouse cursor to run a fix, they are using remote desktop technology. It lets users connect to a specific computer and control it over the internet as if they were right in front of it. You might also like to check out my guide on How to Remotely Log off Windows Users.The easiest way to explain Remote Desktop is to say that it is a bit like using remote controlled software. If you have questions or comments leave them below. Download a free trial and try it for yourself. The AD Pro Toolkit includes 13 tools to simplify Active Directory and computer management. Want an easy way to check windows server uptime and last boot date on all computers? Then check out the tool below. restart-computer (get-content c:\work\computers.txt) Example 4: Use PowerShell to shutdown down two computers Stop-Computer -ComputerName "Server01", "Server02" Just 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. There will be times as a Windows Administrator when you will need to reboot or shutdown a remote computer or server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |