AD | Application | AWS | Azure | Cloud | Database | Enterprise | Environmental | Event Log | File System | IoT | IT Service | Network/System | NIS2 | Infra | Performance | Protocol | SaaS | Security | Service Level | Storage | Linux | VMware | VoIP | Web | Wireless | SNMP

MonitorTools.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


M