Disable-CMSoftwareUpdateAutoDeploymentRule

Disables Configuration Manager deployment rules for automatic software updates.

Syntax

Disable-CMSoftwareUpdateAutoDeploymentRule
       [-Confirm]
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       -Id <String[]>
       [-WhatIf]
       [<CommonParameters>]
Disable-CMSoftwareUpdateAutoDeploymentRule [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -InputObject  [-WhatIf] []
Disable-CMSoftwareUpdateAutoDeploymentRule [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -Name  [-WhatIf] []

Description

The Disable-CMSoftwareUpdateAutoDeploymentRule cmdlet disables specified Microsoft System Center Configuration Manager deployment rules for automatic software updates. While a rule is disabled, it does not run in accordance with its schedule and you cannot run it manually.

System Center Configuration Manager uses rules to manage automatic deployment of software updates. When a rule runs, System Center Configuration Manager adds updates that qualify for the rule to a software update group. The System Center Configuration Manager server downloads content files and copies them to distribution points, and then updates client computers.

You can specify rules to disable by ID or by name, or specify a rule object by using the Get-CMSoftwareUpdateAutoDeploymentRule cmdlet. You can use the Enable-CMSoftwareUpdateAutoDeploymentRule cmdlet to enable a rule. To remove a rule permanently, use the Remove-CMSoftwareUpdateAutoDeploymentRule cmdlet.

Examples

Example 1: Disable a deployment rule by name

PS C:\>Disable-CMSoftwareUpdateAutoDeploymentRule -Name "Weekly Driver Updates"

This command disables a rule named Weekly Driver Updates.

Example 2: Disable a deployment rule by ID

PS C:\>Disable-CMSoftwareUpdateAutoDeploymentRule -Id "16777217"

This command disables a deployment rule that has the ID 16777217.

Example 3: Disable a deployment rule by using a variable

PS C:\> $CMSUADR = Get-CMSoftwareUpdateAutoDeploymentRule -Name "Weekly Driver Updates"
PS C:\> Disable-CMSoftwareUpdateAutoDeploymentRule -InputObject $CMSUADR

The first command gets a deployment rule that has the specified name, and then stores it in the $CMSUADR variable.

The second command disables the rule stored in the variable.

Required Parameters

-Id

Specifies an array of IDs for rules for automatic deployment of software updates. This value is the AutoDeploymentID property of the deployment rule object.

Type:String[]
Aliases:AutoDeploymentId
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a software update automatic deployment rule object. To obtain a deployment rule object, use Get-CMSoftwareUpdateAutoDeploymentRule.

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

Specifies a name of a rule for automatic deployment of software updates.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
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
-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