Modifier

Partager via


Set-IISCentralCertProviderCredential

Modifies the user account credentials for the IIS certificate store.

Syntax

Set-IISCentralCertProviderCredential
   [-UserName] <String>
   [<CommonParameters>]

Description

The Set-IISCentralCertProviderCredential cmdlet enables you to change the user account used to access the IIS central certificate store. The central certificate store allows you to store all your IIS certificates in a centralized location (such as a file share); IIS servers then retrieve certificate from this centralized location. That means that you only have to install certificates in one location; there is no need to install the same certificate on each and every IIS server.

Servers access the central store by using a preconfigured user account. This account, which can be either a local account or a domain account, must have read-only access to the certificate store location. You must specify a user account when you initially enable the certificate store. However, you can change this user account at any time by running Set-IISCentralCertProviderCredential.

Examples

Example 1

PS C:\> Set-IISCentralCertProviderCredential -UserName "IISCertificateAdmin"

This command changes the central certificate store user account to IISCertificateAdmin. Note that you only specify the user name when calling Set-IISCentralCertProviderCredential. When the command runs you will be prompted to enter the password for the specified user account.

Parameters

-UserName

Specifies the user account used to access the certificate store; this can be either an Active Directory SAM Account Name or a user principal name. For example:

-UserName "IISCertificateAdmin"

It is recommended that you create a user account reserved solely for certificate administration, and that you give this account only the privileges required to manage the certificate store (most notably, the account needs read access to the store location). The central store user account can be either a local account or a domain account.

Note that you only need to specify the user account name. You will be prompted for the user account password when the command actually runs.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

String