Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Set-Service

Set-Service - Powershell 3.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> [-ComputerName <String[]>] [-Description <String>] [-DisplayName <String>] [-PassThru] [-S
tartupType <ServiceStartMode>] [-Status <String>] [<CommonParameters>]
Set-Service [-ComputerName <String[]>] [-Description <String>] [-DisplayName <String>] [-InputObject <ServiceController
>] [-PassThru] [-StartupType <ServiceStartMode>] [-Status <String>] [<CommonParameters>]

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