Click to Rate and Give Feedback
TechNet
TechNet Library
Scripting
Script Center
Windows PowerShell
Cmdlets
 Using the Suspend-Service Cmdlet
What Can I Do With Windows PowerShell?
Using the Suspend-Service Cmdlet

Pausing a Running Service

The Suspend-Service cmdlet is used for pausing a service that is currently running. (What’s the difference between pausing a service and stopping a service? A stopped service drops all existing connections and refuses to take any new connections. A paused service will typically continue to service existing connections, but will not accept any new connections.)

To pause a service, simply call Suspend-Service followed by the service name (that is, the name of the service as stored in the registry):


Suspend-Service tapisrv

Alternatively, you can add the -displayname parameter and suspend the service using the service display name, the name that appears in the Services snap-in:


Suspend-Service -displayname "telephony"
Related Links

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker