< Back
WindowsServiceStop
Post
NAME WindowsServiceStop
SYNOPSIS
Autonance DSL task to stop a Windows service.
SYNTAX
WindowsServiceStop [-ComputerName] <String> [-ServiceName] <String> [-Credential <PSCredential>] [-Count <Int32>]
[-Delay <Int32>] [<CommonParameters>]
DESCRIPTION
The WindowsServiceStop task is part of the Autonance domain-specific
language (DSL). The task will stop the specified Windows service on a
remote computer by using CIM to connect to the remote computer. A user
account can be specified with the Credential parameter.
PARAMETERS
-ComputerName <String>
This task stops a Windows service on the specified computer.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ServiceName <String>
Specifies the service name for the service to be stopped.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform the task.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Count <Int32>
Specifies the number of retries between service state tests.
Required? false
Position? named
Default value 30
Accept pipeline input? false
Accept wildcard characters? false
-Delay <Int32>
Specifies the interval between service state tests.
Required? false
Position? named
Default value 2
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author : Claudio Spizzi
License : MIT License
RELATED LINKS
https://github.com/claudiospizzi/Autonance
SYNOPSIS
Autonance DSL task to stop a Windows service.
SYNTAX
WindowsServiceStop [-ComputerName] <String> [-ServiceName] <String> [-Credential <PSCredential>] [-Count <Int32>]
[-Delay <Int32>] [<CommonParameters>]
DESCRIPTION
The WindowsServiceStop task is part of the Autonance domain-specific
language (DSL). The task will stop the specified Windows service on a
remote computer by using CIM to connect to the remote computer. A user
account can be specified with the Credential parameter.
PARAMETERS
-ComputerName <String>
This task stops a Windows service on the specified computer.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ServiceName <String>
Specifies the service name for the service to be stopped.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform the task.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Count <Int32>
Specifies the number of retries between service state tests.
Required? false
Position? named
Default value 30
Accept pipeline input? false
Accept wildcard characters? false
-Delay <Int32>
Specifies the interval between service state tests.
Required? false
Position? named
Default value 2
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author : Claudio Spizzi
License : MIT License
RELATED LINKS
https://github.com/claudiospizzi/Autonance