Contact Info

Crumbtrail

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

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

Suspend-Service

Short description
Suspends (pauses) one or more running services.

Syntax
Suspend-Service [-Name] <string[]> [-Exclude <string[]>] [-Include <string[]>] [-PassThru] [-Confirm] [-WhatIf] [<C
ommonParameters>]

Suspend-Service -DisplayName <string[]> [-Exclude <string[]>] [-Include <string[]>] [-PassThru] [-Confirm] [-WhatIf
] [<CommonParameters>]

Suspend-Service [-InputObject <ServiceController[]>] [-Exclude <string[]>] [-Include <string[]>] [-PassThru] [-Conf
irm] [-WhatIf] [<CommonParameters>]

Description
The Suspend-Service cmdlet sends a suspend message to the Windows Service Controller for each of the specified serv
ices. While suspended, the service is still running, but its action is halted until resumed, such as by using Resum
e-Service. You can specify the services by their service names or display names, or you can use the InputObject par
ameter to pass a service object representing the services that you want to suspend.