TestimoX

API Reference

Command

Set-CxServiceCommandLine

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.Services.WindowsServiceCommandLine

Implements the Set-CxServiceCommandLine cmdlet.

Examples

Authored help example

Example 1


Set-CxServiceCommandLine -Name TestimoX.Monitoring -ExecutablePath C:\ProgramData\TestimoX\Monitoring\TestimoX.Monitoring.exe -Argument '--config','C:\ProgramData\TestimoX\Monitoring\TestimoX.Monitoring.json'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Set-CxServiceCommandLine -Name <string> [-ComputerName <string>] -CommandLine <WindowsServiceCommandLine> [-DisplayName <string>] [<CommonParameters>]
#
Parameter set: By CommandLine

Parameters

Name string requiredposition: 0pipeline: true (ByPropertyName)aliases: ServiceName
Gets or sets the Windows service name.
ComputerName string optionalposition: 1pipeline: true (ByPropertyName)
Gets or sets the target computer name.
CommandLine WindowsServiceCommandLine requiredposition: 2pipeline: false
Gets or sets the full command-line model to apply.
DisplayName string optionalposition: namedpipeline: false
Gets or sets an optional display name update applied alongside the command line.

Outputs

ComputerX.Services.WindowsServiceCommandLine

Set-CxServiceCommandLine -Name <string> [-ComputerName <string>] -ExecutablePath <string> [-Argument <string[]>] [-DisplayName <string>] [<CommonParameters>]
#
Parameter set: By ExecutablePath

Parameters

Name string requiredposition: 0pipeline: true (ByPropertyName)aliases: ServiceName
Gets or sets the Windows service name.
ComputerName string optionalposition: 1pipeline: true (ByPropertyName)
Gets or sets the target computer name.
ExecutablePath string requiredposition: 2pipeline: false
Gets or sets the executable path to register.
Argument string[] optionalposition: 3pipeline: falsealiases: Arguments
Gets or sets the command-line arguments appended after the executable path.
DisplayName string optionalposition: namedpipeline: false
Gets or sets an optional display name update applied alongside the command line.

Outputs

ComputerX.Services.WindowsServiceCommandLine