Test-MtAdGpoEnforcedCount
SYNOPSIS
Counts enforced GPO links (links that block inheritance).
SYNTAX
Test-MtAdGpoEnforcedCount [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test retrieves Active Directory GPO link state information using Get-MtADGpoState and then counts how many GPO link entries are marked as Enforced.
Enforced GPO links cannot be blocked by child OUs, which means security-related policies can apply everywhere even when lower-level inheritance would normally disable them.
EXAMPLES
EXAMPLE 1
Test-MtAdGpoEnforcedCount
Returns $true when no enforced GPO links are detected, $false when enforced GPO links exist.
PARAMETERS
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
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.