Set-CMHierarchySetting

Sets hierarchy settings in System Center Configuration Manager.

Syntax

Set-CMHierarchySetting
   [-AllowPrestage <Boolean>]
   [-ApprovalMethod <ApprovalMethodType>]
   [-AutoResolveClientConflict <Boolean>]
   [-AutoUpgradeDays <Int32>]
   [-Confirm]
   [-DisableWildcardHandling]
   [-EnableAutoClientUpgrade <Boolean>]
   [-ExcludeServer <Boolean>]
   [-FallbackSiteCode <String>]
   [-Force]
   [-ForceWildcardHandling]
   [-PassThru]
   [-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
Required:False
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AutoResolveClientConflict
Type:Boolean
Aliases:AutomaticallyResolveConfictingRecord, AutomaticallyResolveConflictingRecord
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AutoUpgradeDays
Type:Int32
Aliases:AutomaticallyUpgradeDays
Required:False
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableAutoClientUpgrade
Type:Boolean
Aliases:EnableProgram
Required:False
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FallbackSiteCode

Specifies the site code for a fallback site.

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

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
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 does not generate any output.

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

Indicates whether to use a fallback site.

Type:Boolean
Required:False
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False