API Reference
Command
Set-CxServiceCommandLine
Implements the Set-CxServiceCommandLine cmdlet.
Examples
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 CommandLineParameters
- Name string
- Gets or sets the Windows service name.
- ComputerName string
- Gets or sets the target computer name.
- CommandLine WindowsServiceCommandLine
- Gets or sets the full command-line model to apply.
- DisplayName string
- 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 ExecutablePathParameters
- Name string
- Gets or sets the Windows service name.
- ComputerName string
- Gets or sets the target computer name.
- ExecutablePath string
- Gets or sets the executable path to register.
- Argument string[]
- Gets or sets the command-line arguments appended after the executable path.
- DisplayName string
- Gets or sets an optional display name update applied alongside the command line.
Outputs
ComputerX.Services.WindowsServiceCommandLine