Syntax error How to start windows service with display name in PowerShell?

How to start windows service with display name in PowerShell?



To stop the service using display name, use the parameter –DisplayName.

For Example,

PS C:\> Start-Service -DisplayName "Print Spooler" -Verbose
VERBOSE: Performing the operation "Start-Service" on target "Print Spooler (Spooler)".

You can also start the service with display name using,

PS C:\> Get-Service -DisplayName "Print Spooler" | Start-Service -Verbose
Updated on: 2020-01-22T10:32:28+05:30

851 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements