Set-​CM​Aad​Conditional​Access​Policy

Sets an aad conditional access policy

Syntax

Set-CMAadConditionalAccessPolicy
   [-AccountId <String>]
   [-AuthorityId <String>]
   [-ClientType <AadServicePrincipalClientType>]
   [-Confirm]
   [-DisableWildcardHandling]
   -Enabled <Boolean>
   [-ExcludedSecurityGroup <String[]>]
   [-ForceWildcardHandling]
   -IncludedSecurityGroup <String[]>
   [-IntuneClientId <String>]
   [-IntuneResourceId <String>]
   [-PassThru]
   -ServicePrincipalType <AadServicePrincipalType>
   [-TargetedDevicePlatform <AadServicePrincipalDevicePlatform[]>]
   [-UserCredential <PSCredential>]
   [-WhatIf]
   [-WindowsDeviceState <AadServicePrincipalDeviceState>]
   [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-Enabled

{{Fill Enabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IncludedSecurityGroup

{{Fill IncludedSecurityGroup Description}}

Type:String[]
Aliases:IncludedSecurityGroups
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServicePrincipalType

{{Fill ServicePrincipalType Description}}

Type:AadServicePrincipalType
Parameter Sets:ExchangeOnline, SharepointOnline, SkypeForBusiness, CrmOnline
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AccountId

{{Fill AccountId Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AuthorityId

{{Fill AuthorityId Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClientType

{{Fill ClientType Description}}

Type:AadServicePrincipalClientType
Parameter Sets:NativeApps, BrowsersAndNativeApps
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExcludedSecurityGroup

{{Fill ExcludedSecurityGroup Description}}

Type:String[]
Aliases:ExcludedSecurityGroups
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IntuneClientId

{{Fill IntuneClientId Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IntuneResourceId

{{Fill IntuneResourceId Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet may not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TargetedDevicePlatform

{{Fill TargetedDevicePlatform Description}}

Type:AadServicePrincipalDevicePlatform[]
Aliases:TargetedDevicePlatforms
Parameter Sets:Ios, Android, WindowsPhone, Windows, EasSupported, EasUnsupported, All
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserCredential

{{Fill UserCredential Description}}

Type:PSCredential
Aliases:Credentials, Credential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WindowsDeviceState

{{Fill WindowsDeviceState Description}}

Type:AadServicePrincipalDeviceState
Parameter Sets:CompliantOrDomainJoined, DomainJoined, Compliant
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object