PowerShell Logo Small

Remove-CertificateEnrollmentPolicyServer



This is the built-in help made by Microsoft for the command 'Remove-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

Removes an enrollment policy server and the URL of the enrollment policy server from the current user or local computer configuration.

SYNTAX


Remove-CertificateEnrollmentPolicyServer [-Url] <Uri> -context {Machine | User} [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-CertificateEnrollmentPolicyServer cmdlet removes an enrollment policy server from the current user or local computer configuration. This cmdlet also removes any
policy cache file and credentials from the vault.


Only one enrollment policy server configuration is removed from the user configured location at a time.

If a scope of All is specified and the same URL exists in the local computer (machine) and User contexts, then this cmdlet will fail.

An error is generated if the specified URL does not exist in the given scope.

Any policy cache file and credentials are also removed from the vault.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287537
Add-CertificateEnrollmentPolicyServer
Get-CertificateEnrollmentPolicyServer

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Remove-CertificateEnrollmentPolicyServer -Url https://www.contoso.com/policy/service.svc -Context User



This example removes the enrollment policy server configuration from the local user configuration with the given URL.




EXAMPLE 2

PS C:\>$userPolicy = Get-CertificateEnrollmentPolicyServer -Scope All -Context User -Url https://www.contoso.com/policy/service.svc



PS C:\>Remove-CertificateEnrollmentPolicyServer -Url $userPolicy.url -Context User



This example removes the enrollment policy server that is configured from the current user configuration.