> ## 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 a Windows Service
- URL: https://www.filipkonopik.com/powershell-restart-a-windows-service/
- Published: 2026-07-20T08:18:08.000Z
- Updated: 2026-08-06T05:26:15.000Z
- Author: Filip Konopík
- Tags: Processes & Services

Need to restart a Windows service - after a config change, to clear a stuck state, or as part of routine troubleshooting? This one-liner restarts it directly from the terminal.

Prerequisites:

- Privileges: Run as Administrator
- Module: Built-in, no import needed

Quick Command:

```Powershell
Restart-Service YourServiceName -PassThru
```

Example Output:

```Powershell
Status   Name               DisplayName
------   ----               -----------
Running  YourServiceName Dell Your Service Display Name
```

📦

****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-Service stops and starts the specified service in one step.
- Replace YourServiceName with the service's actual Name property.
- By default this produces no output on success. Adding -PassThru returns the service object so you can confirm the new status.

Pro Tip:

If you're not sure of a service's exact name, search for it first:

```Powershell
Get-Service *keyword*
```