Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Set-Service

Set-Service - Powershell 1.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 »

Set-Service

Description
Change the start mode/properties of a service

Usage


Options


Example(s)
Set the start type of the sysmonlog service to automatic:

PS C:\>set-service sysmonlog -startuptype automatic

Display the start type of all services on the computer:

PS C:\>get-wmiobject win32_service | format-table Name, StartMode -autosize

Display the start type of the telnet service on the computer:

PS C:\>get-wmiobject win32_service | where {$_.Name -eq "tlntsvr"}