Skip to content

Get‑RegistryKeyInheritance

raandree edited this page Sep 6, 2026 · 1 revision

SYNOPSIS

Gets access or audit inheritance state for local registry keys.

SYNTAX

Get-RegistryKeyInheritance [-Path] <Object[]> [-Section <String>] [-RegistryView <WindowsRegistryView>]
 [-ThrottleLimit <Int32>] [<CommonParameters>]

DESCRIPTION

Reads selected registry ACL control flags and reports whether access or audit inheritance is enabled without changing descriptor state.

EXAMPLES

EXAMPLE 1

Get-RegistryKeyInheritance -Path HKCU:\Software -Section All

Gets access and audit inheritance state for the Software key.

PARAMETERS

-Path

One or more local registry key paths or RegistryKey pipeline objects.

Type: Object[]
Parameter Sets: (All)
Aliases: PSPath

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-RegistryView

Selects the default, 32-bit, or 64-bit registry view explicitly.

Type: WindowsRegistryView
Parameter Sets: (All)
Aliases:
Accepted values: Default, Registry32, Registry64

Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False

-Section

Selects access inheritance, audit inheritance, or both ACLs.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Access
Accept pipeline input: False
Accept wildcard characters: False

-ThrottleLimit

Limits concurrently processed canonical targets. One requests deterministic sequential execution.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: [Math]::Max(1, [Math]::Min(8, [Environment]::ProcessorCount))
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

Microsoft.Win32.RegistryKey

OUTPUTS

WindowsAccessControl.RegistryKeyInheritance

NOTES

RELATED LINKS

Home

Commands

DSC resources

Clone this wiki locally