PowerShell Logo Small

Resume-Service



This is the built-in help made by Microsoft for the command 'Resume-Service', in PowerShell version 2 - as retrieved from Windows version 'Microsoft® Windows Vista™ Ultimate ' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Resumes one or more suspended (paused) services.

SYNTAX


Resume-Service [-Name] <string[]> [-Exclude <string[]>] [-Include <string[]>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Resume-Service -DisplayName <string[]> [-Exclude <string[]>] [-Include <string[]>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Resume-Service [-InputObject <ServiceController[]>] [-Exclude <string[]>] [-Include <string[]>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParamete
rs>]



Search powershellhelp.space

DESCRIPTION


The Resume-Service cmdlet sends a resume message to the Windows Service Controller for each of the specified services. If they have been suspende
d, they will resume service. If they are currently running, the message is ignored. You can specify the services by their service names or displa
y names, or you can use the InputObject parameter to pass a service object that represents the services that you want to resume.



<

RELATED LINKS

Online version: http://go.microsoft.com/fwlink/?LinkID=113386
Get-Service
Start-Service
Stop-Service
Restart-Service
Suspend-Service
Set-Service
New-Service

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>resume-service sens



Description
-----------
This command resumes the System Event Notification service (the service name is represented in the command by "sens") on the local computer. The
command uses the Name parameter to specify the service name of the service, but the command omits the parameter name because the parameter name i
s optional.








-------------------------- EXAMPLE 2 --------------------------

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



Description
-----------
This command resumes all of the suspended (paused) services on the computer. The first command gets all of the services on the computer. The pipe
line operator (|) passes the results to the Where-Object cmdlet, which selects the services with a Status property of "Paused". The next pipeline
operator sends the results to Resume-Service, which resumes the paused services.

In practice, you would use the WhatIf parameter to determine the effect of the command before running it without WhatIf.