Set-CMHierarchySetting
Set-CMHierarchySetting
Syntax
Parameter Set: SetHierarchySetting
Set-CMHierarchySetting [-AllowPrestage <Boolean> ] [-ApprovalMethod <ApprovalMethodType> {AutomaticallyApproveAllComputers | AutomaticallyApproveComputersInTrustedDomains | ManuallyApproveEachComputer} ] [-AutomaticallyResolveConfictingRecord <Boolean> ] [-AutomaticallyUpgradeDays <Int32> ] [-EnableProgram <Boolean> ] [-FallbackSiteCode <String> ] [-Force] [-UseFallbackSite <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Set-CMHierarchySetting cmdlet
Parameters
-AllowPrestage<Boolean>
Indicates whether to allow prestaging.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-ApprovalMethod<ApprovalMethodType>
Specifies an approval method. Acceptable values for this parameter are:
-- AutomaticallyApproveAllComputers
-- AutomaticallyApproveComputersInTrustedDomains
-- ManuallyApproveEachComputer
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-AutomaticallyResolveConfictingRecord<Boolean>
Indicates whether to automatically resolve record conflicts.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-AutomaticallyUpgradeDays<Int32>
Specifies the number of days before an automatic upgrade occurs.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-EnableProgram<Boolean>
Indicates whether to enable a program.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-FallbackSiteCode<String>
Specifies the site code for a fallback site.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Force
Performs the action without a confirmation message.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-UseFallbackSite<Boolean>
Indicates whether to use a fallback site.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Modify the hierarchy setting
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.
PS C:\> Set-CMHierarchySetting -AllowPrestage -ApprovalMethod AutomaticallyApproveAllComputers