Set-CMHierarchySetting

Sets hierarchy settings in System Center Configuration Manager.

Syntax

Set-CMHierarchySetting
   [-UseFallbackSite <Boolean>]
   [-FallbackSiteCode <String>]
   [-ApprovalMethod <ApprovalMethodType>]
   [-AutoResolveClientConflict <Boolean>]
   [-EnableAutoClientUpgrade <Boolean>]
   [-AutoUpgradeDays <Int32>]
   [-AllowPrestage <Boolean>]
   [-ExcludeServer <Boolean>]
   [-EnablePreProduction <Boolean>]
   [-TargetCollectionId <String>]
   [-TargetCollectionName <String>]
   [-TargetCollection <IResultObject>]
   [-UnlimitTargetCollectionMember]
   [-EnableExclusionCollection <Boolean>]
   [-ExclusionCollectionId <String>]
   [-ExclusionCollectionName <String>]
   [-ExclusionCollection <IResultObject>]
   [-Force]
   [-PassThru]
   [-EnablePrereleaseFeature]
   [-PreferBoundaryGroupManagementPoint <Boolean>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<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
Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnablePreProduction
Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnablePrereleaseFeature
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
Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExclusionCollectionId
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExclusionCollectionName
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
Type:Boolean
Aliases:PreferBoundaryGroupManagementPoints
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TargetCollection
Type:IResultObject
Aliases:PreProductionCollection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TargetCollectionId
Type:String
Aliases:PreProductionCollectionId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TargetCollectionName
Type:String
Aliases:PreProductionCollectionName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UnlimitTargetCollectionMember
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