Set-CMCertificateRegistrationPoint

Sets a certificate registration point role on a site system server.

Syntax

Set-CMCertificateRegistrationPoint
   [-AddCertificate <Hashtable>]
   [-ConnectionAccountUserName <String>]
   -InputObject <IResultObject>
   [-PassThru]
   [-Port <Int32>]
   [-RemoveCertificate <String[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMCertificateRegistrationPoint
   [-AddCertificate <Hashtable>]
   [-ConnectionAccountUserName <String>]
   [-PassThru]
   [-Port <Int32>]
   [-RemoveCertificate <String[]>]
   [-SiteCode <String>]
   [-SiteSystemServerName] <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMCertificateRegistrationPoint cmdlet updates the settings of a certificate registration point role on a site system server.

Examples

Example 1: Set a certificate registration point role by using the pipeline

PS C:\> Get-CMCertificateRegistrationPoint -SiteSystemServerName "SiteServer01.Contoso.com" | Set-CMCertificateRegistrationPoint  -AddCertificate @{"https://ndes2.fabrikam.com/certsrv/mscep/mscep.dll" ="\\Server\ShareFolder\Cert.cer"} -ConnectionAccountUserName (Get-CMUser -Name Contoso\Administrator).UserName -RemoveCertificate @{"https://ndes1.fabrikam.com/certsrv/mscep/mscep.dll"="\\Server\ShareFolder\RootCA.cer"}.Keys[0]

This command gets the certificate registration point object for the site system server named SiteServer01.Contoso.com and uses the pipeline operator to pass the object to Set-CMCertificateRegistrationPoint. Set-CMCertificateRegistrationPoint adds the certificate named Cert.cer and removes the certificate named RootCA.cer by using the user account named Contoso\Administrator to connect to the Configuration Manager database.

Example 2: Set a certificate registration point role by name

PS C:\> Set-CMCertificateRegistrationPoint -SiteSystemServerName "SiteServer02.Contoso.com" -AddCertificate @{"https://ndes2.fabrikam.com/certsrv/mscep/mscep.dll"="\\Server\ShareFolder\RootCA.cer"} -ConnectionAccountUserName (Get-CMUser -Name Contoso\Admin1).UserName -RemoveCertificate @{"https://ndes1.fabrikam.com/certsrv/mscep/mscep.dll" ="\\Server\ShareFolder\Cert.cer"}.Keys[0]

This command adds the certificate named RootCA.cer to the site system server named SiteServer02.Contoso.com, and removes the certificate named Cert.cer, by using the user account named Contoso\Admin1 to connect to the Configuration Manager database.

Required Parameters

-InputObject

Specifies a certification registration point object. To obtain a certificate registration point object, use the Get-CMCertificateRegistrationPoint cmdlet.

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

Specifies the name of the Configuration Manager site system server.

Type:String
Aliases:Name, ServerName
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AddCertificate

Specifies, as a hash table, the URL for the Network Device Enrollment Service and the root CA certificate.

Type:Hashtable
Aliases:AddCertificates
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
-ConnectionAccountUserName

Specifies the account that connects the certification registration point to the Configuration Manger database.

Type:String
Aliases:UserName
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
-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
-Port

Specifies the HTTPS port number used by the certificate registration point to communicate with the Network Device Enrollment Service.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveCertificate

Specifies an array of URLs that match corresponding certificates in the original object.

Type:String[]
Aliases:RemoveCertificates, RemoveCertificateUrl, RemoveCertificateUrls
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode

Specifies the site code of the Configuration Manager site server.

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