< Back

WindowsServiceConfig

Sat Jan 11, 2020 4:17 am

NAME WindowsServiceConfig



SYNOPSIS

Autonance DSL task to configure a Windows service.





SYNTAX

WindowsServiceConfig [-ComputerName] <String> [-ServiceName] <String> [-Credential <PSCredential>] [-StartupType

<String>] [<CommonParameters>]





DESCRIPTION

The WindowsServiceConfig task is part of the Autonance domain-specific

language (DSL). The task will configure 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 configures 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 configured.



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



-StartupType <String>

If specified, the target startup type will be set.



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, 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