Set-CMAadConditionalAccessPolicy

Sets an aad conditional access policy

Syntax

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

Examples

Example 1

PS C:\>

Required Parameters

-Enabled
Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IncludedSecurityGroup
Type:String[]
Aliases:IncludedSecurityGroups
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServicePrincipalType
Type:AadServicePrincipalType
Parameter Sets:ExchangeOnline, SharepointOnline, SkypeForBusiness, CrmOnline
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AccountId
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AuthorityId
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClientType
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
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
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IntuneResourceId
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
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
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
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