How to restart the computer using PowerShell
Windows provides users with plenty of ways to restart the computer. Users can use Power User Menu, Start Menu or tools to shutdown and even the classic Shutdown dialog box. However, there is another way that users do not know about using PowerShell. In the article below, Network Administrator will guide you how to restart your computer using PowerShell.
To restart the computer with PowerShell, you first need to open PowerShell. There are many ways to open PowerShell on Windows on Windows 10, for example you can use Search (Cortana).
Open PowerShell on Windows 10 with Search
Open Start Menu or Start Screen by pressing Windows key, then enter " powershell " into the Search frame.
On the search results list, click Windows PowerShell or press Enter to open PowerShell.
If you want to open PowerShell under Admin, select PowerShell on the search results list and then press Ctrl + Shift + Enter or right-click Windows PowerShell and select Run as Administrator .
On the PowerShell window, enter the following command into:
restart-computer
This command will restart your computer immediately.
Also you can use to restart multiple computers at once, quite useful.
The command syntax will be:
Restart-Computer -ComputerName "Computer1", "Computer2", "Computer3"
The next command below to restart the remote Computer1 computer and wait 10 minutes later (600s) for Windows PowerShell is available on the restarted computer before continuing the steps:
Restart-Computer -ComputerName "Server01" -Wait -For PowerShell -Timeout 600 -Delay 2
Refer to some of the following articles:
- Activate "God Mode" on Windows 10, 8 and 7
- Instructions to enable / disable Windows Firewall with Command Prompt
- What is Developer Mode on Windows 10? How to activate this mode?
Good luck!
You should read it
- What to do when Windows can't find PowerShell?
- Ways to restart a Windows 11 PC
- Instructions on how to use PowerShell in Windows Server 2012
- How to Install or Update PowerShell on Windows 11
- PowerShell command in Windows
- Use PowerShell to download any file on Windows 10
- How to restart (restart) applications on Windows 11 and Windows 10
- About PowerShell
May be interested
- Instructions on how to turn UAC on and off on Windows 10user account control, or uac, is part of the windows security system. uac prevents applications from making unwanted changes on your computer. when a software tries to change the system - in relation to a registry or system files, windows 10 displays a uac confirmation dialog. if you want to make these changes, the user can confirm.
- How to join Windows Insider to download and experience the latest Builds?each year microsoft will release some major windows 10 update updates. however, if you want to 'have the right' new updates available, you will have to join the windows insider program. as a member, you can download updates completely for free with just a few mouse clicks. then your computer will load new builds (aka versions).
- Back up Start Menu settings on Windows 10start menu on windows 10 is one of the useful and customizable tools. you can arrange a new layout on the left to access settings and other locations. in the middle you can quickly access the list of applications you have installed and on the right side you can set live tiles to continuously display updates.
- The Sleep option is missing on Windows Power Menu 10/8/7, this is how to recoverhow to restore the sleep option on the power menu, please refer to the following article of network administrator.
- How to capture a Windows 10 screen area using Snipping Toolsnipping tool is a screen capture tool available on windows 10, with a feature that lets you capture an area on the screen or the entire computer screen.
- How to set video as Windows 10 computer wallpaperdeskscapes 8 is a software that turns videos on your computer into a windows 10 desktop wallpaper, increasing the vividness and freshness of your computer screen.