Skip to main content

Test-MtEidscaCP03

SYNOPSIS

Checks if Default Settings - Consent Policy Settings - Block user consent for risky apps is set to 'true'

SYNTAX

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

DESCRIPTION

Defines whether user consent will be blocked when a risky request is detected

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

EXAMPLES

EXAMPLE 1

Test-MtEidscaCP03

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

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