API Reference
Command
Stop-CxService
Implements the Stop-CxService cmdlet.
Examples
Example 1
Stop-CxService -Name Spooler
Example 2
Stop-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
Stop-CxService -Name <string> [-ComputerName <string>] [-TimeoutMs <int>] [-PassThru] [<CommonParameters>]#Parameters
- Name string
- Gets or sets the Windows service name.
- ComputerName string
- Gets or sets the target computer name.
- TimeoutMs int
- Gets or sets the timeout in milliseconds used to wait for the service to enter the stopped state.
- PassThru SwitchParameter
- Gets or sets a value indicating whether the full service status snapshot should be returned.
Outputs
ComputerX.Services.WindowsServiceStatusSnapshot, System.Boolean