Contact Info

Crumbtrail

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

Suspend-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 »

Suspend-Service

Description
Suspend a running service

Usage


Options


Example(s)
Suspend the Telnet service (Tlntsvr) service:

PS C:\>suspend-service -displayname "Telnet"

Use the pipeline operator to pass an object from Get-service to Suspend-service:

PS C:\>get-service schedule | suspend-service

Suspend all services that can be suspended, this is done by selecting only services with a value of "True" for the CanPauseAndContinue property:

PS C:\>get-service | where-object {$_.CanPauseAndContinue -eq "True"} | suspend-service -confirm