Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Suspend-Service

Suspend-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
Suspends (pauses) one or more running services.

Suspend-Service [-InputObject] <ServiceController[]> [-Exclude <String[]>] [-Include <String[]>] [-PassThru] [-Confirm]
 [-WhatIf] [<CommonParameters>]
Suspend-Service [-Exclude <String[]>] [-Include <String[]>] [-PassThru] -DisplayName <String[]> [-Confirm] [-WhatIf] [<
Suspend-Service [-Name] <String[]> [-Exclude <String[]>] [-Include <String[]>] [-PassThru] [-Confirm] [-WhatIf] [<Commo

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