Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Suspend-Service

Suspend-Service - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


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

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

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>]

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.