Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Set-Service

Set-Service - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Starts, stops, and suspends a service, and changes its properties.

Set-Service [-Name] <string> [-Description <string>] [-DisplayName <string>] [-PassThru] [-StartupType {Automatic |
 Manual | Disabled}] [-Status <string>] [-ComputerName <string[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-Service [-Description <string>] [-DisplayName <string>] [-InputObject <ServiceController>] [-PassThru] [-Startu
pType {Automatic | Manual | Disabled}] [-Status <string>] [-ComputerName <string[]>] [-Confirm] [-WhatIf] [<CommonP

The Set-Service cmdlet changes the properties of a local or remote service, including the status, description, disp
lay name, and start mode. You can use this cmdlet to start, stop, or suspend (pause) a service. To identify the ser
vice, enter its service name or submit a service object, or pipe a service name or service object to Set-Service.