Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Add-CMComplianceSettingRegistryKeyValue

Add a compliance setting registry key value.

Syntax

EmptyRule (Default)

Add-CMComplianceSettingRegistryKeyValue
 -DataType <SettingDataType>
 -Hive <RegistryRootKey>
 -KeyName <String>
 -InputObject <PSObject>
 -Name <String>
 [-Is64Bit]
 [-RemediateDword <Boolean>]
 [-ValueName <String>]
 [-Description <String>]
 [-NoRule]
 [-PassThru]
 [-DisableWildcardHandling]
 [-ForceWildcardHandling]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

ExistentialRule

Add-CMComplianceSettingRegistryKeyValue
 -DataType <SettingDataType>
 -Hive <RegistryRootKey>
 -KeyName <String>
 -InputObject <PSObject>
 -Name <String>
 -RuleName <String>
 [-Existence <ExistenceType>]
 [-Is64Bit]
 [-RemediateDword <Boolean>]
 [-ValueName <String>]
 [-Description <String>]
 [-ExistentialRule]
 [-NoncomplianceSeverity <NoncomplianceSeverity>]
 [-PassThru]
 [-RuleDescription <String>]
 [-DisableWildcardHandling]
 [-ForceWildcardHandling]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

ValueRule

Add-CMComplianceSettingRegistryKeyValue
 -DataType <SettingDataType>
 -ExpectedValue <String[]>
 -Hive <RegistryRootKey>
 -KeyName <String>
 -InputObject <PSObject>
 -Name <String>
 -RuleName <String>
 [-ExpressionOperator <RuleExpressionOperator>]
 [-Is64Bit]
 [-Remediate]
 [-RemediateDword <Boolean>]
 [-ValueName <String>]
 [-Description <String>]
 [-NoncomplianceSeverity <NoncomplianceSeverity>]
 [-PassThru]
 [-ReportNoncompliance]
 [-RuleDescription <String>]
 [-ValueRule]
 [-DisableWildcardHandling]
 [-ForceWildcardHandling]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1

{{ Add example description here }}

{{ Add example code here }}

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DataType

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:SettingDataType
Default value:None
Accepted values:String, Integer, DateTime, FloatingPoint, Version, StringArray
Supports wildcards:False
DontShow:False

Parameter sets

-Description

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Existence

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:ExistenceType
Default value:None
Accepted values:MustExist, MustNotExist
Supports wildcards:False
DontShow:False

Parameter sets

-ExistentialRule

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ExpectedValue

Starting in version 2006, this parameter allows a null or empty string.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ExpressionOperator

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:RuleExpressionOperator
Default value:None
Accepted values:And, Or, Other, IsEquals, NotEquals, GreaterThan, LessThan, Between, NotBetween, GreaterEquals, LessEquals, BeginsWith, NotBeginsWith, EndsWith, NotEndsWith, Contains, NotContains, AllOf, OneOf, NoneOf, SetEquals, SubsetOf, ExcludesAll
Supports wildcards:False
DontShow:False

Parameter sets

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Hive

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:RegistryRootKey
Default value:None
Accepted values:ClassesRoot, CurrentConfig, CurrentUser, LocalMachine, Users
Supports wildcards:False
DontShow:False
Aliases:RegistryHive

Parameter sets

-InputObject

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Is64Bit

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-KeyName

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:RegistryKey

Parameter sets

-Name

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:SettingName

Parameter sets

-NoncomplianceSeverity

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:NoncomplianceSeverity
Default value:None
Accepted values:None, Informational, Warning, Critical, CriticalWithEvent
Supports wildcards:False
DontShow:False

Parameter sets

-NoRule

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:NoRules

Parameter sets

-PassThru

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Remediate

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RemediateDword

{{ Fill RemediateDword Description }}

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ReportNoncompliance

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RuleDescription

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RuleName

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ValueName

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:RegistryValueName

Parameter sets

-ValueRule

Add a compliance setting registry key value.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet doesn't run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.Management.Automation.PSObject

Outputs

System.Object


Feedback

Was this page helpful?