> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Restart the Computer
- URL: https://www.filipkonopik.com/powershell-restart-the-computer/
- Published: 2026-07-21T06:06:27.000Z
- Updated: 2026-08-06T05:29:30.000Z
- Author: Filip Konopík
- Tags: Maintenance

Need to restart a machine as part of a script, after applying an update, or to force a reboot without going through the Start menu? This one-liner restarts it directly from the terminal.

Prerequisites:

- Privileges: Run as Administrator (for restarting remote machines; not required for restarting the local machine as a standard user in most cases)
- Module: Built-in, no import needed

Quick Command:

```Powershell
Restart-Computer -Force
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Restart-Computer restarts the local machine.
- \-Force forces applications to close and the restart to proceed immediately, rather than waiting or prompting.
- Without -Force, the restart may be delayed or blocked if applications have unsaved changes or are otherwise preventing shutdown.

Pro Tip:

To restart a remote computer instead of the local one, add -ComputerName:

```Powershell
Restart-Computer -ComputerName "RemotePC" -Force
```