TestimoX

API Reference

Command

Restore-CxServiceCommandLine

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

Implements the Restore-CxServiceCommandLine cmdlet.

Examples

Authored help example

Example 1


Restore-CxServiceCommandLine -Name TestimoX.Monitoring -Path C:\Temp\monitoring-binpath.txt
        

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

Restore-CxServiceCommandLine -Name <string> [-ComputerName <string>] -Path <string> [-ExecutablePathOverride <string>] [-KeepBackupFile] [<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.
Path string requiredposition: 2pipeline: false
Gets or sets the local filesystem path of the backup file.
ExecutablePathOverride string optionalposition: namedpipeline: false
Gets or sets an optional executable path used to rebase the restored command line.
KeepBackupFile SwitchParameter optionalposition: namedpipeline: false
Gets or sets a value indicating whether the backup file should be preserved after restore.

Outputs

System.Boolean