Resume-Service - PowerShell


 

Resumes one or more suspended (paused) services. (Resume-Service)

   

# NAME
Resume-Service

# 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] [<CommonParameters>]

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

# PARAMETERS
-DisplayName <string[]>
Specifies the display names of the services to be resumed. Wildcards are permitted.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Exclude <string[]>
Omits the specified services. The value of this parameter qualifies the Name parameter. Enter a name element or pattern, such as "s*". Wildcards are permitted.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Include <string[]>
Resumes only the specified services. The value of this parameter qualifies the Name parameter. Enter a name element or pattern, such as "s*". Wildcards are permitted.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-InputObject <ServiceController[]>
Specifies ServiceController objects representing the services to be resumed. Enter a variable that contains the objects, or type a command or expression that gets the objects.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-Name <string[]>
Specifies the service names of the services to be resumed.

The parameter name is optional. You can use "-Name" or its alias, "-ServiceName", or you can omit the parameter name.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-PassThru [<SwitchParameter>]
Returns an object representing the service. By default, this cmdlet does not generate any output.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm [<SwitchParameter>]
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf [<SwitchParameter>]
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
System.ServiceProcess.ServiceController or System.String
You can pipe a service object or a string that contains a service name to Resume-Service.

# OUTPUTS
None or System.ServiceProcess.ServiceController
When you use the PassThru parameter, Resume-Service generates a System.ServiceProcess.ServiceController object representing the resumed service. Otherwise, this cmdlet does not generate any output.

# NOTES

The status of services that have been suspended is "Paused". When services are resumed, their status is "Running".

Resume-Service can control services only when the current user has permission to do so. If a command does not work correctly, you might not have the required permissions.

To find the service names and display names of the services on your system, type "get-service". The service names appear in the Name column, and the display names appear in the DisplayName column.

# 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 is 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 pipeline 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.

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

C:\Windows>powershell get-help Restart-Service -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Resumes one or more suspended (paused) services.

HTTP: ... PS_Windows/en/Resume-Service.htm
0.265
11722

What is a file extension, file suffix?

 /

Wie erstelle ich eine Windows 7 Passwort (Kennwort) Reset Diskette, oder CD?

 /

Are there any limitations for the file size of not compressible file?

 /

Unterschied CPU, FPU, GPU ?

 /

What is a file extension, file suffix?

 /

Wie erstelle ich eine Windows 7 Passwort (Kennwort) Reset Diskette, oder CD?

 /

Wlan or WiFi speed under Windows 10 see how does it work?

 /

How to add windows programs to Favorites K.O. for a fast Task Kill?

 /

Portable use of the process killer under Windows (10, 8.1, 7, ...)!

 /

Prevent USB devices from going into sleep mode?

 /

8 Mouse Balls for on the Desktop for Windows (10, 8.1, 7, ...)!

 /

How can i find and open the program folder in Windows 8.1/10? (location, file, path)

 /