Start-Service
Use Start-Service to start a stopped Windows service by name or display name.
Documentation: Microsoft Learn — Start-Service
Syntax
See the command anatomy
Read the command and its supplied arguments. This example requires real PowerShell or its module; this diagram does not execute it.
Start-Service [-Name] <String[]> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]- Stage 1Start-Service
-Name -PassThru -WhatIf -Confirm
Try it
PowerShell example · browser support is limited.
Execution scope: The full example below requires PowerShell outside this browser. You can edit this runner to use the supported practice commands; unsupported syntax returns an explanation.
Follow the objects
Run the command to inspect each stage.
Examples
Start with Start-Service
Show reference output
Sample output · fictional data, shaped like the real thing
(No output — Start-Service is silent on success. Add -PassThru to see the service.)
Start-Service -PassThru
Show reference output
Sample output · fictional data, shaped like the real thing
Status Name DisplayName ------ ---- ----------- Running Spooler Print Spooler
Parameters
Parameter definitions:
-Name-PassThru-WhatIf-Confirm
Practical use and troubleshooting
Practical scenario: Use Start-Service when you need to start a stopped Windows service by name or display name. Review syntax and sample output, then try an example in the browser lab. Start with one identified target and inspect the returned values before extending the operation to a list. Keep the identity in your report so you can trace each result back to the object or path that produced it.
Common error and fix: A disabled service cannot be started until its startup configuration is changed by an authorised administrator. Check StartType and dependencies; do not change configuration merely to make a test pass. In an unattended script, capture this failure with its original error record and record which target failed. An empty result and an unsuccessful query must remain distinguishable in the final report.
See also: Stop-Service. Start-Service requests that a service start; Stop-Service requests that it stop. The request is separate from the service actually reaching its final state. Read the linked command before substituting it; similar names do not imply identical inputs or output.
Recap
Start-Service Use Start-Service to start a stopped Windows service by name or display name.
Next: Get-Service