Remove-CMConditionalAccessPolicy

Removes a conditional access policy.

Syntax

Remove-CMConditionalAccessPolicy
      [-InputObject] <IResultObject>
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-CMConditionalAccessPolicy cmdlet removes a conditional access policy from a Microsoft Configuration Manager site system server.

Examples

Example 1: Remove a conditional access policy by using the pipeline

PS C:\> Get-CMConditionalAccessPolicy | Remove-CMConditionalAccessPolicy

This command gets the conditional access policy object and uses the pipeline operator to pass the object to Remove-CMConditionalAccessPolicy, which removes the conditional access policy.

Required Parameters

-InputObject

Specifies a conditional access policy object. To obtain a conditional access policy object, use the Get-CMConditionalAccessPolicy cmdlet.

Type:IResultObject
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Indicates that wildcard handling is disabled.

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

Forces the command to run without asking for user confirmation.

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

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False