Service_Stop

SYNOPSIS

Stops a service.

SYNTAX

__AllParameterSets

Service_Stop [-ServiceName] <string> [[-MaxTimeout] <Object>] [<CommonParameters>]

ALIASES

This cmdlet has the following aliases,

DESCRIPTION

This function starts a service on the system.

EXAMPLES

EXAMPLE 1

Service_Stop -ServiceName “gupdate”

EXAMPLE 2

Service_Stop -ServiceName “gupdate” -MaxTimeout 120

PARAMETERS

-MaxTimeout

The maximum timeout in seconds to wait for the service to stop, default is 60 seconds.

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ServiceName

The name of the service.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

For more information, please visit https://capasystems.atlassian.net/wiki/spaces/CI65DOC/pages/19462456023/cs.Service+Stop