< Back

WindowsServiceStart

Sat Jan 11, 2020 4:18 am

NAME WindowsServiceStart



SYNOPSIS

Autonance DSL task to start a Windows service.





SYNTAX

WindowsServiceStart [-ComputerName] <String> [-ServiceName] <String> [-Credential <PSCredential>] [-Count <Int32>]

[-Delay <Int32>] [<CommonParameters>]





DESCRIPTION

The WindowsServiceStart task is part of the Autonance domain-specific

language (DSL). The task will start 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 starts 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 started.



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