API Reference
Initialize-TestimoXService
Unified installer/manager for the TestimoX Windows Service.
Remarks
Performs install, uninstall, config apply, and optional restart in one cmdlet. Keeps surface area small so the module doesn't duplicate built-in PowerShell service cmdlets.
Examples
Example 1: Install the service (LocalSystem) and auto-generate config if missing
PS>
Initialize-TestimoXService -Install -ServicePath C:\Apps\TestimoX.Service.exe
Example 2: Install with explicit config and domain account
PS>
Initialize-TestimoXService -Install -ServicePath C:\Apps\TestimoX.Service.exe -ConfigPath C:\Configs\service.json -Account 'DOMAIN\svc-testimo' -Credential (Get-Credential)
Example 3: Apply new config and restart service
PS>
Initialize-TestimoXService -Apply -Name TestimoX -ConfigPath C:\Configs\service.json -Restart
Example 4: Uninstall
PS>
Initialize-TestimoXService -Uninstall -ServicePath C:\Apps\TestimoX.Service.exe
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
Initialize-TestimoXService -Install -ServicePath <string> [-Account <string>] -ConfigPath <string> [-Credential <PSCredential>] [-Description <string>] [-DisplayName <string>] [-Name <string>] [<CommonParameters>]#By InstallParameters
- Install SwitchParameter
- Install the service.
- ServicePath string
- Path to TestimoX.Service.exe to install, uninstall, or run once.
- Account string
- Logon account. Use 'LocalSystem', 'LocalService', 'NetworkService', or 'DOMAIN\\User'.
- ConfigPath string
- Path to service.json to deploy during install or apply.
- Credential PSCredential
- Credential for the specified domain account (ignored for built-in accounts).
- Description string
- Windows service description.
- DisplayName string
- Windows service display name. Defaults to the resolved service name when not provided.
- Name string
- Windows service name (defaults to TestimoX).
Outputs
TestimoX.Services.ServiceActionResult, TestimoX.Services.ServiceConfigDeployment, TestimoX.Services.ServiceInstallResult, TestimoX.Services.ServiceUninstallResult
Initialize-TestimoXService -ServicePath <string> -Uninstall [-Name <string>] [<CommonParameters>]#By UninstallParameters
- ServicePath string
- Path to TestimoX.Service.exe to install, uninstall, or run once.
- Uninstall SwitchParameter
- Uninstall the service.
- Name string
- Windows service name (defaults to TestimoX).
Outputs
TestimoX.Services.ServiceActionResult, TestimoX.Services.ServiceConfigDeployment, TestimoX.Services.ServiceInstallResult, TestimoX.Services.ServiceUninstallResult
Initialize-TestimoXService -RunNow [-Name <string>] [-RunNowConfigPath <string>] -ServicePath <string> [<CommonParameters>]#By RunNowParameters
- RunNow SwitchParameter
- Run the service workload once (without installing).
- Name string
- Windows service name (defaults to TestimoX).
- RunNowConfigPath string
- Optional config path to run once; defaults to deployed service.json.
- ServicePath string
- Path to TestimoX.Service.exe to install, uninstall, or run once.
Outputs
TestimoX.Services.ServiceActionResult, TestimoX.Services.ServiceConfigDeployment, TestimoX.Services.ServiceInstallResult, TestimoX.Services.ServiceUninstallResult
Initialize-TestimoXService -Apply -ConfigPath <string> [-Name <string>] -Restart [<CommonParameters>]#By ApplyParameters
- Apply SwitchParameter
- Apply a new configuration to service folder (validates JSON before copying).
- ConfigPath string
- Path to service.json to deploy during install or apply.
- Name string
- Windows service name (defaults to TestimoX).
- Restart SwitchParameter
- Restart the service after applying the configuration.
Outputs
TestimoX.Services.ServiceActionResult, TestimoX.Services.ServiceConfigDeployment, TestimoX.Services.ServiceInstallResult, TestimoX.Services.ServiceUninstallResult
Initialize-TestimoXService -Restart [-Name <string>] [<CommonParameters>]#Set 5Parameters
- Restart SwitchParameter
- Restart the service after applying the configuration.
- Name string
- Windows service name (defaults to TestimoX).
Outputs
TestimoX.Services.ServiceActionResult, TestimoX.Services.ServiceConfigDeployment, TestimoX.Services.ServiceInstallResult, TestimoX.Services.ServiceUninstallResult