API Reference
Command
Get-CxRegistryExpanded
Expands a registry value into the concrete paths it resolves to on a target computer.
Examples
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
- Registry key path that contains the value to expand, for example HKLM\SOFTWARE\Contoso\App.
- Name string
- Name of the registry value to expand.
- ComputerName string
- Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.
Outputs
System.String