TestimoX

API Reference

Command

Get-CxRegistryExpanded

Namespace ComputerX.PowerShell
Outputs
System.String

Expands a registry value into the concrete paths it resolves to on a target computer.

Examples

Authored help example

Example 1: Expands a service image path on the local machine.

PS>


Get-CxRegistryExpanded -Path 'HKLM\SYSTEM\CurrentControlSet\Services\Schedule' -Name ImagePath
        

Example 2: Expands a remote application install path that contains environment variables.

PS>


Get-CxRegistryExpanded -ComputerName APP01 -Path 'HKLM\SOFTWARE\Contoso\App' -Name InstallPath
        

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

Get-CxRegistryExpanded -Path <string> [-Name <string>] [-ComputerName <string>] [<CommonParameters>]
#

Parameters

Path string requiredposition: 0pipeline: false
Registry key path that contains the value to expand, for example HKLM\SOFTWARE\Contoso\App.
Name string optionalposition: 1pipeline: false
Name of the registry value to expand.
ComputerName string optionalposition: 2pipeline: false
Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.

Outputs

System.String