Condividi tramite


Get-CertificateAutoEnrollmentPolicy

Get-CertificateAutoEnrollmentPolicy

Retrieves certificate auto-enrollment policy settings.

Syntax

Parameter Set: Default
Get-CertificateAutoEnrollmentPolicy -context <Context> {Machine | User} -Scope <AutoEnrollmentPolicyScope> {Applied | Local} [ <CommonParameters>]

Detailed Description

The Get-CertificateAutoEnrollmentPolicy cmdlet gets certificate auto-enrollment policy settings for the user or computer. This cmdlet can return the settings configured in local policy or that are being applied from either local or domain policy.

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

Parameters

-context<Context>

Specifies the context of the enrollment policy to return.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Scope<AutoEnrollmentPolicyScope>

Specifies the scope of the enrollment policy to return. If Local scope is specified, then the locally configured policy is returned. If Applied scope is specified, then the currently applied policy which can be either the local policy or a domain policy, is returned.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

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.

  • Microsoft.CertificateServices.Commands.AutoEnrollmentPolicy

    The AutoEnrollmentPolicy object combines certificate auto-enrollment policy settings and exposes them as properties.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.CertificateServices.Commands.AutoEnrollmentPolicy

    The AutoEnrollmentPolicy object combines certificate auto-enrollment policy settings and exposes them as properties. Each property can be modified and piped into the Set-CertificateAutoEnrollmentPolicy cmdlet to be applied.

Examples

EXAMPLE 1

This example gets the locally configured certificate auto-enrollment user policy. In this example, the Renew expired certificates, update pending certificates, and remove revoked certificates and Update certificates that use certificates templates options are enabled. Also, the Expiration notifications option is enabled and set to 10 percent of the certificate lifetime which are stored in the MY store. Finally, Balloon notifications are disabled.

PS C:\> Get-CertificateAutoEnrollmentPolicy -Scope Local -Context User

Set-CertificateAutoEnrollmentPolicy