Set-CMCertificateProfileTrustedRootCA

Sets a trusted CA certificate profile.

Syntax

Set-CMCertificateProfileTrustedRootCA
   [-Description <String>]
   [-DestinationStore <CertificateStore>]
   -Id <Int32>
   [-NewName <String>]
   [-PassThru]
   [-Path <String>]
   [-SupportedPlatform <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMCertificateProfileTrustedRootCA
   [-Description <String>]
   [-DestinationStore <CertificateStore>]
   -InputObject <IResultObject>
   [-NewName <String>]
   [-PassThru]
   [-Path <String>]
   [-SupportedPlatform <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMCertificateProfileTrustedRootCA
   [-Description <String>]
   [-DestinationStore <CertificateStore>]
   -Name <String>
   [-NewName <String>]
   [-PassThru]
   [-Path <String>]
   [-SupportedPlatform <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMCertificateProfileTrustedRootCA cmdlet changes the settings of a trusted CA certificate profile.

Examples

Example 1: Set a trusted CA certificate profile by using the pipeline

PS C:\> Get-CMCertificateProfileTrustedRootCA -Name "Test123" -Fast | Set-CMCertificateProfileTrustedRootCA -Description "Updated description" -WhatIf

This command describes what would happen if the command gets the trusted CA certificate profile object named Test123 and uses the pipeline operator to pass the object to Set-CMCertificateProfileTrustedRootCA to update its description. The command does not actually run.

Example 2: Set a trusted CA certificate profile by ID

PS C:\> Set-CMCertificateProfileTrustedRootCA -Id 16777479 -NewName "Test456" -Description "Update" -DestinationStore UserIntermediate -Confirm

This command updates the name of the trusted CA certificate profile with the ID of 16777479 to Test456, updates its description, and changes the destination store to UserIntermediate. By specifying the Confirm parameter, the user is prompted for confirmation before the command runs.

Required Parameters

-Id

Specifies the ID of a trusted CA certificate profile.

Type:Int32
Aliases:CI_ID, CIId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a trusted CA certificate profile object. To obtain a trusted CA certificate profile object, use the Get-CMCertificateProfileTrustedRootCA function.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of a trusted CA certificate profile.

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

Optional Parameters

-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
-Description

Specifies a description for the trusted CA certificate profile.

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

Specifies the destination store for the trusted CA certificate. Valid values are:

  • SystemRoot
  • SystemIntermediate
  • UserIntermediate
Type:CertificateStore
Aliases:Store
Parameter Sets:SystemRoot, SystemIntermediate, UserIntermediate
Position:Named
Default value:None
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
-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
-NewName

Specifies a new name for the trusted CA certificate profile.

Type:String
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
-Path

Specifies the path to the trusted CA certificate file.

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

Specifies a supported platform object. To obtain a supported platform object, use the Get-CMSupportedPlatform cmdlet.

Type:IResultObject[]
Aliases:SupportedPlatforms
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

Outputs

IResultObject#SMS_ConfigurationPolicy