Set-​CM​Hierarchy​Setting

Sets hierarchy settings in System Center Configuration Manager.

Syntax

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

Description

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

Examples

Example 1: Modify the hierarchy setting

PS C:\> 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.

Optional Parameters

-AllowPrestage

Indicates whether to allow prestaging.

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

Specifies an approval method. Valid values are: - AutomaticallyApproveAllComputers

  • AutomaticallyApproveComputersInTrustedDomains
  • ManuallyApproveEachComputer
Type:ApprovalMethodType
Parameter Sets:AutomaticallyApproveComputersInTrustedDomains, ManuallyApproveEachComputer, AutomaticallyApproveAllComputers
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AutoResolveClientConflict
Type:Boolean
Aliases:AutomaticallyResolveConfictingRecord, AutomaticallyResolveConflictingRecord
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AutoUpgradeDays
Type:Int32
Aliases:AutomaticallyUpgradeDays
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
Position:Named
Default value:False
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
-EnableAutoClientUpgrade
Type:Boolean
Aliases:EnableProgram
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableExclusionCollection

{{Fill EnableExclusionCollection Description}}

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

{{Fill EnablePreProduction Description}}

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

{{Fill EnablePrereleaseFeature Description}}

Type:SwitchParameter
Aliases:EnablePrereleaseFeatures
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False
-ExclusionCollection

{{Fill ExclusionCollection Description}}

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

{{Fill ExclusionCollectionId Description}}

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

{{Fill ExclusionCollectionName Description}}

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

Specifies the site code for a fallback site.

Type:String
Position:Named
Default value:None
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
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
-PassThru

Returns the current working object. By default, this cmdlet does not generate any output.

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

{{Fill PreferBoundaryGroupManagementPoint Description}}

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

{{Fill TargetCollection Description}}

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

{{Fill TargetCollectionId Description}}

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

{{Fill TargetCollectionName Description}}

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

{{Fill UnlimitTargetCollectionMember Description}}

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

Indicates whether to use a fallback site.

Type:Boolean
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:False
Accept pipeline input:False
Accept wildcard characters:False