Set-CMHierarchySetting

Sets hierarchy settings in Configuration Manager.

Syntax

Set-CMHierarchySetting
   [-AllowPrestage <Boolean>]
   [-ApprovalMethod <ApprovalMethodType>]
   [-AutoResolveClientConflict <Boolean>]
   [-AutoUpgradeDays <Int32>]
   [-EnableAutoClientUpgrade <Boolean>]
   [-EnableExclusionCollection <Boolean>]
   [-EnablePreProduction <Boolean>]
   [-EnablePrereleaseFeature]
   [-ExcludeServer <Boolean>]
   [-ExclusionCollection <IResultObject>]
   [-ExclusionCollectionId <String>]
   [-ExclusionCollectionName <String>]
   [-FallbackSiteCode <String>]
   [-Force]
   [-PassThru]
   [-PreferBoundaryGroupManagementPoint <Boolean>]
   [-TargetCollection <IResultObject>]
   [-TargetCollectionId <String>]
   [-TargetCollectionName <String>]
   [-TelemetryLevel <TelemetryLevelType>]
   [-UnlimitTargetCollectionMember]
   [-UseFallbackSite <Boolean>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMHierarchySetting cmdlet sets hierarchy settings in Configuration Manager.

Note

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

Examples

Example 1: Modify the hierarchy setting

PS XYZ:\> Set-CMHierarchySetting -AllowPrestage -ApprovalMethod AutomaticallyApproveAllComputers

This command uses the Set-CMHierarchySetting cmdlet to modify the hierarchy setting. The command specifies the value AutomaticallyApproveAllComputers for the ApprovalMethod parameter, and also specifies the AllowPrestage parameter.

Parameters

-AllowPrestage

Indicates whether to allow prestaging.

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

-ApprovalMethod

Specifies an approval method. Valid values are:

  • AutomaticallyApproveAllComputers
  • AutomaticallyApproveComputersInTrustedDomains
  • ManuallyApproveEachComputer
Type:ApprovalMethodType
Accepted values:AutomaticallyApproveComputersInTrustedDomains, ManuallyApproveEachComputer, AutomaticallyApproveAllComputers
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AutoResolveClientConflict

Type:Boolean
Aliases:AutomaticallyResolveConfictingRecord, AutomaticallyResolveConflictingRecord
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AutoUpgradeDays

Type:Int32
Aliases:AutomaticallyUpgradeDays
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-DisableWildcardHandling

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

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

-EnableAutoClientUpgrade

Type:Boolean
Aliases:EnableProgram
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnableExclusionCollection

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

-EnablePreProduction

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

-EnablePrereleaseFeature

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

-ExcludeServer

Indicates whether the cmdlet excludes the server.

Type:Boolean
Aliases:ExcludeServers
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ExclusionCollection

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

-ExclusionCollectionId

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

-ExclusionCollectionName

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

-FallbackSiteCode

Specifies the site code for a fallback site.

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

-Force

Forces the command to run without asking for user confirmation.

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

-ForceWildcardHandling

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

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

-PassThru

Add this parameter to return an object that represents the item with which you're working. By default, this cmdlet may not generate any output.

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

-PreferBoundaryGroupManagementPoint

Type:Boolean
Aliases:PreferBoundaryGroupManagementPoints
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TargetCollection

Type:IResultObject
Aliases:PreProductionCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TargetCollectionId

Type:String
Aliases:PreProductionCollectionId
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TargetCollectionName

Type:String
Aliases:PreProductionCollectionName
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TelemetryLevel

{{ Fill TelemetryLevel Description }}

Type:TelemetryLevelType
Aliases:DiagnosticLevel
Accepted values:Basic, Enhanced, Full
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UnlimitTargetCollectionMember

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

-UseFallbackSite

Indicates whether to use a fallback site.

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

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

IResultObject

IResultObject[]