Skip to main content
Version: 2.2.1-preview

Get-MdeSettingValue

SYNOPSIS​

Extracts setting values from Graph API configuration policy responses

SYNTAX​

Get-MdeSettingValue [-Setting] <Object> [-ComplianceCheck] <String> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION​

Parses setting objects from Microsoft Graph API configuration policy responses and extracts the appropriate value based on the compliance check type.

EXAMPLES​

EXAMPLE 1​

Get-MdeSettingValue -Setting $settingObj -ComplianceCheck "Boolean"

Returns the extracted value (e.g., "_1" for enabled).

PARAMETERS​

-Setting​

The setting object from Graph API

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ComplianceCheck​

The type of compliance check: Boolean, Range, Enum, MinimumLevel, MinimumValue, NotRequired, Manual

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-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.

INPUTS​

OUTPUTS​

System.String​

NOTES​