PowerShell Logo Small

Add-CertificateEnrollmentPolicyServer



This is the built-in help made by Microsoft for the command 'Add-CertificateEnrollmentPolicyServer', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds an enrollment policy server to the current user or local system configuration.

SYNTAX


Add-CertificateEnrollmentPolicyServer [-AutoEnrollmentEnabled] [-Credential <PkiCredential>] [-NoClobber] [-RequireStrongValidation] -context {Machine | User} -Url <Uri>
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-CertificateEnrollmentPolicyServer cmdlet adds an enrollment policy server to the current user or local system configuration. If an enrollment policy server already
exists, then this cmdlet will overwrite it. Group Policy can be configured to prevent enrollment policy servers from being added.


Delegation may be required when using this cmdlet with Windows PowerShell® remoting and changing user configuration.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287525
Get-ChildItem
Get-Credential
Get-CertificateEnrollmentPolicyServer
Remove-CertificateEnrollmentPolicyServer

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Add-CertificateEnrollmentPolicyServer -Url $url -Context Machine



This example loads a policy from $url using Windows integrated authentication under the computer context, using the computer account credentials. This example also adds the
policy server to the local computer configuration. Auto enrollment is off and strong validation is off.




EXAMPLE 2

PS C:\>$cert = ( Get-ChildItem -Path cert:\LocalMachine\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF )



PS C:\>Add-CertificateEnrollmentPolicyServer -Url $cert.EnrollmentPolicyEndPoint.Url -Credential $cert -Context Machine



This example loads a policy using $cert as the authentication credential and adds the policy to the local computer local configuration since the context is the local
computer (Machine).




EXAMPLE 3

PS C:\>$up = Get-Credential



PS C:\>Add-CertificateEnrollmentPolicyServer -Url $url -Context Machine -Credential $up



This example loads a policy using the username and password from $url. This example adds the policy server to the local computer configuration.




EXAMPLE 4

PS C:\>$cert = (Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF)



PS C:\>Add-CertificateEnrollmentPolicyServer -Url $cert.EnrollmentPolicyEndPoint.Url -Credential $cert.PSPath -Context Machine



This example loads policy using the Path object for a certificate. Use the certificate to authenticate to the URL and add the policy server into the local user configuration.




EXAMPLE 5

PS C:\>$up = Get-Credential



PS C:\>Add-CertificateEnrollmentPolicyServer -Url $url -Context User -Credential $up –WhatIf
What if: Policy successfully loaded from {$url} using username/password credentials.
Policy server configuration will be added to current user context.



This example shows that if the policy cannot be loaded or if there is a conflict with an identifier (ID) or URL, then this will be the output.

If the policy server already exists, then the output will state that the existing policy server configuration will be overwritten.