Set-CMCmdletUpdateCheck

Configures update check settings on a per-user or per-system basis.

Syntax

Set-CMCmdletUpdateCheck
   [-CheckMinimumMins <Int32>]
   [-CheckTimeoutSec <Int32>]
   [-Confirm]
   [-CurrentUser]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-IsUpdateCheckEnabled <Boolean>]
   [-IsUpdateCheckEnabledForCmdlet <Boolean>]
   [-IsUpdateCheckEnabledForProvider <Boolean>]
   [-PassThru]
   [-WhatIf]
   [<CommonParameters>]
Set-CMCmdletUpdateCheck [-CheckMinimumMins ] [-CheckTimeoutSec ] [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -InputObject 
 [-IsUpdateCheckEnabled ] [-IsUpdateCheckEnabledForCmdlet ]
 [-IsUpdateCheckEnabledForProvider ] [-PassThru] [-WhatIf] []
Set-CMCmdletUpdateCheck [-CheckMinimumMins ] [-CheckTimeoutSec ] [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-IsUpdateCheckEnabled ]
 [-IsUpdateCheckEnabledForCmdlet ] [-IsUpdateCheckEnabledForProvider ] [-PassThru] [-System]
 [-WhatIf] []

Description

The Set-CMCmdletUpdateCheck cmdlet configures update check settings on a per-user or per-system basis. You must be running as an administrator to set system settings.

Note: This cmdlet is deprecated starting with version 1610, and may be removed in a future release.

Examples

Example 1: Disable an update check

PS C:\> $UpdateConfig = Get-CMCmdletUpdateCheck -CurrentUser
PS C:\> Set-CMCmdletUpdateCheck -InputObject $UpdateConfig -IsUpdateCheckEnabled $False -CheckMinimumMins 5

The first command gets the cmdlet update check configuration object for the current user and stores the object in the $UpdateConfig variable.

The second command disables update check for the update check configuration object stored in $UpdateConfig.

Example 2: Pass an update check configuration object and disable it

PS C:\> Get-CMCmdletUpdateCheck -CurrentUser | Set-CMCmdletUpdateCheck -IsUpdateCheckEnabled $False -CheckMinimumMins 5

This command gets the cmdlet update check configuration object for the current user and uses the pipeline operator to pass the object to Set-CmdletUpdateCheck, which disables update check for the configuration object.

Required Parameters

-CurrentUser

Indicates that the update check for the current user is returned.

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

Specifies a cmdlet update configuration object. To obtain a cmdlet update configuration object, use the Get-CMCmdletUpdateCheck cmdlet.

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

Indicates that the update check for the system is returned.

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

Optional Parameters

-CheckMinimumMins

Specifies the minimum number of minutes to wait before checking for a cmdlet update.

Type:Int32
Aliases:CheckIntervalMinutes, CheckIntervalMins, CheckMinimumMinutes
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CheckTimeoutSec

Specifies the number of seconds to wait before timing out while checking for a cmdlet update.

Type:Int32
Aliases:CheckTimeoutSeconds
Required:False
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
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
-IsUpdateCheckEnabled

Indicates whether update check is enabled.

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

Indicates whether update check is enabled for the Configuration ManagerWindows PowerShell cmdlets.

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

Indicates whether update check is enabled for the Configuration Manager provider.

Type:Boolean
Required:False
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 does not generate any output.

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