編輯

共用方式為


Install-TrustedProvisioningCertificate

Adds a certificate to the Trusted Certificate Store.

Syntax

Install-TrustedProvisioningCertificate
       [-CertificatePath] <String>
       [-ForceInstall]
       [-LogsDirectoryPath <String>]
       [-WprpFile <String>]
       [-ConnectedDevice]
       [<CommonParameters>]

Description

Installs the specified certificate to the Trusted Certificate Store.

The Install-TrustedProvisioningCertificate cmdlet is supported on Windows 11 client operating system only.

Examples

Example 1: Install Trusted Provisioning Certificate

PS C:\> Install-TrustedProvisioningCertificate -CertificatePath trustedCert.cer

Installs the specified certificate as a trusted provisioning certificate.

Parameters

-CertificatePath

Path to .CER file

Type:String
Aliases:Path
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ConnectedDevice

If enabled, specifies that the device type is mobile.

Type:SwitchParameter
Aliases:Device
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ForceInstall

Specifies whether, if certificate already exists, it will be overwritten.

Type:SwitchParameter
Aliases:Force
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LogsDirectoryPath

Specifies the logs directory path.

Type:String
Aliases:Logs
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WprpFile

Specifies the location of the WPR profile file.

Type:String
Aliases:Wprp
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

Object