You are currently viewing PowerShell Resume-Service Cmdlet

PowerShell Resume-Service Cmdlet

PowerShell Resume-Service Cmdlet

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed Suspend-Service cmdlet in PowerShell.

https://cloudaffaire.com/powershell-suspend-service-cmdlet/

In this blog post, we will discuss Resume-Service cmdlet in PowerShell. You can use Resume-Service cmdlet to Resume windows services that is paused. Resume-Service cmdlet resumes a windows service by sending a resume message to the windows service controller. If the service is already running, resume operation is ignored. You can use parameters like ‘name’,’displayname’ or ‘inputobject’ to pass the service name to Resume-Service cmdlet. You need to have permission to manage windows service to use Resume-Service cmdlet.

Resume-Service Cmdlet Syntax:

Resume-Service Cmdlet Argument List:

  • Confirm: Prompts you for confirmation before running the cmdlet.
  • DisplayName: Specifies the display names of the services to Resume. Wildcard characters are permitted.
  • Exclude: Specifies services that this cmdlet omits. The value of this parameter qualifies the Name parameter.
  • Include: Specifies services that this cmdlet Resumes. The value of this parameter qualifies the Name parameter.
  • InputObject: 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.
  • Name: Specifies the service names for the service to be Resumed.
  • PassThru: Returns an object that represents the service. By default, this cmdlet does not generate any output.
  • WhatIf: Shows what would happen if the cmdlet runs. The cmdlet is not run.

PowerShell Resume-Service Cmdlet:

Hope you have enjoyed this article. In the next blog post, we will discuss Get-EventLog CmdLet in PowerShell.

To Set more details on PowerShell, kindly follow below official documentation

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about?view=powershell-5.1

 

Leave a Reply