Skip to main content
Version: 2.0.1 (preview)

Test-MtEidscaPR01

SYNOPSISโ€‹

Checks if Default Settings - Password Rule Settings - Password Protection - Mode is set to 'Enforce'

SYNTAXโ€‹

Test-MtEidscaPR01 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTIONโ€‹

If set to Enforce, users will be prevented from setting banned passwords and the attempt will be logged. If set to Audit, the attempt will only be logged.

Queries settings and returns the result of graph/settings.values | where-object name -eq 'BannedPasswordCheckOnPremisesMode' | select-object -expand value -eq 'Enforce'

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Test-MtEidscaPR01

Returns the result of graph.microsoft.com/beta/settings.values | where-object name -eq 'BannedPasswordCheckOnPremisesMode' | select-object -expand value -eq 'Enforce'

PARAMETERSโ€‹

-ProgressActionโ€‹

{{ Fill ProgressAction Description }}

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.

INPUTSโ€‹

OUTPUTSโ€‹

System.Booleanโ€‹

NOTESโ€‹