TestimoX

API Reference

Command

Start-CxService

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.Services.WindowsServiceStatusSnapshot System.Boolean

Implements the Start-CxService cmdlet.

Examples

Authored help example

Example 1


Start-CxService -Name Spooler
        

Example 2


Start-CxService -ComputerName SERVER1 -Name TestimoX.Agent -PassThru
        

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

Start-CxService -Name <string> [-ComputerName <string>] [-TimeoutMs <int>] [-PassThru] [<CommonParameters>]
#

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.
TimeoutMs int optionalposition: 2pipeline: false
Gets or sets the timeout in milliseconds used to wait for the service to enter the running state.
PassThru SwitchParameter optionalposition: namedpipeline: false
Gets or sets a value indicating whether the full service status snapshot should be returned.

Outputs

ComputerX.Services.WindowsServiceStatusSnapshot, System.Boolean