Get-CertificateEnrollmentPolicyServer
Get-CertificateEnrollmentPolicyServer
Returns all of the certificate enrollment policy server URL configurations.
Syntax
Parameter Set: Default
Get-CertificateEnrollmentPolicyServer -context <Context> {Machine | User} -Scope <EnrollmentPolicyServerScope> [-Url <Uri> ] [ <CommonParameters>]
Detailed Description
The Get-CertificateEnrollmentPolicyServer cmdlet retrieves information required for connecting to one or more certificate enrollment policy servers configured for this user or computer. The returned information can be filtered by providing a specific URL, a specific scope, or requesting only user or computer (machine) context.
Parameters
-context<Context>
Retrieves information about the enrollment policy server for the local computer (machine) or Current User context.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Scope<EnrollmentPolicyServerScope>
Specifies where the cmdlet will find the enrollment policy server configuration.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Url<Uri>
Limits the returned enrollment policy servers to the servers that contain the provided URL.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
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.
- None
Outputs
The output type is the type of the objects that the cmdlet emits.
Microsoft.CertificateServices.Commands.EnrollmentPolicyUrlDescription[]
Describes the enrollment policy obtained from the specified URL.
Examples
EXAMPLE 1
This example returns all of the enrollment policy URL configurations that are included with the user configuration, Group Policy, and local policy for the User context.
PS C:\> Get-CertificateEnrollmentPolicyServer -Scope All -Context User
EXAMPLE 2
This example returns all of the enrollment policy URL configurations that have the given URL for the machine context.
PS C:\> Get-CertificateEnrollmentPolicyServer -Url https://www.contoso.com/Policy/service.svc -Scope All -Context Machine
EXAMPLE 3
This example returns all of the enrollment policy server URL configurations that are configured for the User context.
PS C:\> Get-CertificateEnrollmentPolicyServer -Scope ConfiguredByYou -Context User