Add-​CM​Compliance​Setting​Registry​Key

Adds a compliance setting registry key

Syntax

Add-CMComplianceSettingRegistryKey
   [-Confirm]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-Existence <ExistenceType>]
   [-ExistentialRule]
   [-ExpectedValue <String[]>]
   [-ExpressionOperator <RuleExpressionOperator>]
   [-ForceWildcardHandling]
   -Hive <RegistryRootKey>
   -InputObject <PSObject>
   [-Is64Bit]
   -KeyName <String>
   -Name <String>
   [-NoncomplianceSeverity <NoncomplianceSeverity>]
   [-PassThru]
   [-RuleDescription <String>]
   [-RuleName <String>]
   [-WhatIf]
   [<CommonParameters>]
Add-CMComplianceSettingRegistryKey
   [-Confirm]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Hive <RegistryRootKey>
   -InputObject <PSObject>
   [-Is64Bit]
   -KeyName <String>
   -Name <String>
   [-NoRule]
   [-PassThru]
   [-WhatIf]
   [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-ExistentialRule

{{Fill ExistentialRule Description}}

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

{{Fill Hive Description}}

Type:RegistryRootKey
Aliases:RegistryHive
Parameter Sets:ClassesRoot, CurrentConfig, CurrentUser, LocalMachine, Users
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

{{Fill InputObject Description}}

Type:PSObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-KeyName

{{Fill KeyName Description}}

Type:String
Aliases:RegistryKey
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

{{Fill Name Description}}

Type:String
Aliases:SettingName
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

{{Fill Description Description}}

Type:String
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
-Existence

{{Fill Existence Description}}

Type:ExistenceType
Parameter Sets:MustExist, MustNotExist
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExpectedValue

{{Fill ExpectedValue Description}}

Type:String[]
Aliases:ExpectedValues, ExpectedCount, ExpectedCounts
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExpressionOperator

{{Fill ExpressionOperator Description}}

Type:RuleExpressionOperator
Parameter Sets:IsEquals, NotEquals, GreaterThan, GreaterEquals, LessThan, LessEquals, Between, OneOf, NoneOf
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
-Is64Bit

{{Fill Is64Bit Description}}

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

{{Fill NoRule Description}}

Type:SwitchParameter
Aliases:NoRules
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NoncomplianceSeverity

{{Fill NoncomplianceSeverity Description}}

Type:NoncomplianceSeverity
Parameter Sets:None, Informational, Warning, Critical, CriticalWithEvent
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
-RuleDescription

{{Fill RuleDescription Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RuleName

{{Fill RuleName Description}}

Type:String
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

Inputs

System.Management.Automation.PSObject

Outputs

System.Object