Edit

Share via


Install-TrustedProvisioningCertificate

Adds a certificate to the Trusted Certificate Store.

Syntax

Default (Default)

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Path

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-ConnectedDevice

If enabled, specifies that the device type is mobile.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Device

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ForceInstall

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Force

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LogsDirectoryPath

Specifies the logs directory path.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Logs

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WprpFile

Specifies the location of the WPR profile file.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Wprp

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

Object