< Back

Enable-AdsInheritance

Fri Jan 10, 2020 7:33 pm

NAME Enable-AdsInheritance



SYNOPSIS

Enables inheritance on an Active Directoey object.





SYNTAX

Enable-AdsInheritance [-Path] <String[]> [-RemoveExplicit] [[-Server] <String>] [[-Credential] <PSCredential>]

[-EnableException] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Enables inheritance on an Active Directoey object.





PARAMETERS

-Path <String[]>

The distinguished name of the object to process.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-RemoveExplicit [<SwitchParameter>]

By default, all previous access rules will be preserved.

Using this parameter, all explicit access rules will instead be removed.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Server <String>

The server / domain to connect to.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

The credentials to use for AD operations.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-EnableException [<SwitchParameter>]

This parameters disables user-friendly warnings and enables the throwing of exceptions.

This is less user friendly, but allows catching exceptions in calling scripts.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

If this switch is enabled, no actions are performed but informational messages will be displayed that explain

what would happen if the command were to run.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

If this switch is enabled, you will be prompted for confirmation before executing any operations that change

state.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ADUser administrator | Enable-AdsInheritance



Enables inheritance on the administrator object.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-ADComputer -LDAPFilter '(primaryGroupID=516)' | Enable-AdsInheritance -RemoveExplicit



Remove all explicit permissions for deletion.











RELATED LINKS