![]() There is a limitation to keep in mind, though : this cmdlet will fail if a user is currently logged into the remote server. It exposes pretty much all the options of the shutdown command in a nice little UI, which looks like this :Ĭonveniently, PowerShell 3.0 introduced a cmdlet for this exact purpose : Restart-Computer. Select the type of shutdown, then click Shut Down. A window will open with the option to restart the remote computer. Type 'shutdown /i' in the Command Prompt window and then press Enter. t xxx: Set timeout period before shutdown. m \computer: Specify the remote computer. Basic usage and command options: /s: Shutdown the computer. In Remote Desktop, select a computer list in the sidebar of the main window, select one or more computers, then choose Manage > Shut Down. Restarting a computer using the command line Log in as an administrator. Method 1: Using the Windows Remote Shutdown Command: Overview of the built-in shutdown command in Windows. For example, the reboot MySickServer one hour from now, you can run :Īnother nice usage of the shutdown command is : The next morning, they’ll start up and be ready to administer. You can also schedule the reboot for later. Click the Warn users of the action checkbox to set a timer for the computer to restart. Choose what you want the remote computer to do. This allows you to restart a remote computer using its IP address. To reboot a remote machine called MySickServer, run the command : Type the IP address of the computer you want to restart and then click the OK button. This is handy if you have several computers to restart. Step 6: Use PowerShell to restart a list of computers. The -Force option will force a restart even if a user is logged on: Restart-Computer -ComputerName REMOTECOMPUTERNAME -Force. The good old shutdown.exe is a command line executable, it can be called from a cmd.exe command prompt or from a PowerShell console. This command will immediately restart a remote computer. Here are a few commands to do that remotely: shutdown.exe What if you need to reboot a machine which is remote or in a locked server room ? But still, a reboot can really save you when you are in firefighting mode. ![]() ![]() By the way, using this shortcut instead of actually diagnosing the problem shouldn’t be the usual course of action. This quote from IT Crowd reflects probably the most universal stereotype about IT support. “Have you tried turning it off and on again?”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |