Resume-Service

Resume one or more suspended (paused) services.

Syntax
      Resume-Service { [-name] string[]
                     | [-displayName] string[]
                     | [-inputObject ServiceController[]] }
                          [-include string[]] [-exclude string[]]
                             [-passthru] [-whatIf]
                                [-confirm] [CommonParameters]

Key
   -Name string
       The service names to be resumed.
   	
   -DisplayName string
       The display names to be resumed, wildcards are permitted.

   -inputObject ServiceController
       Restart the services represented by ServiceController.
       Enter a command, expression or variable contains the objects.

   -include string
       Resume only the specified services. Qualifies the -Name parameter.
       Wildcards , such as "s*" are permitted.

   -Exclude string
       Omit the specified services e.g. "*SS64*"
       Qualifies the -Name parameter, Wildcards are permitted.

   -PassThru 
        Pass the object created by Resume-Service along the pipeline. 

   -WhatIf
       Describe what would happen if you executed the command without
       actually executing the command.
	   
   -Confirm
       Prompt for confirmation before executing the command.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

-ServiceName is an alias for -Name.

Examples

Resume the TapiSrv (Telephony) service:

PS C:\> resume-service tapiSrv

Resume all of the suspended (paused) services on the computer:

PS C:\> get-service | where-object {$_.Status -eq "Paused"} | resume-service -whatif

to actually run the above, remove the -whatif parameter

"I must down to the seas again, to the lonely sea and the sky, And all I ask is a tall ship and a star to steer her by" ~ John Masefield (Sea Fever)

Related:

Get-Service - Get a list of services
New-Service - Create a new service
Restart-Service
- Restart a stopped service
Set-Service
- Make and set changes to the properties of a service
Start-Service
- Start a stopped service
Stop-Service
- Stop a running service
Suspend-Service
- Suspend a running service
Windows cmd commands: NET START / SC - Service Control


© Copyright SS64.com 1999-2014
Some rights reserved