Import-KeyProvider

This cmdlet imports a key provider from a specified configuration file.

Syntax

-FilePath  <String>
[-DryRun]
[-Password  <SecureString>]
[-Server  <VIServer[]>]
[-TpmRequired]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
FilePath
String named Specifies the configuration file you want to import.
optional
DryRun
SwitchParameter named Specifies to perform a trial import without actually creating a key provider.
optional
Password
SecureString named Specifies the password to decrypt the configuration file you want to import.
optional
Server
VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
optional
TpmRequired
SwitchParameter named Specifies whether the key provider should be restricted to hosts with TPM 2.0 capability.

Output

VMware.VimAutomation.ViCore.Types.V1.Security.BaseKeyProvider

Examples


Example 1

Import-KeyProvider -FilePath c:\myfile

Creates a key provider by importing the configuration from the specified file c:\myfile.

Example 2

Import-KeyProvider -FilePath c:\myfile -DryRun

Performs a trial import without actually creating a key provider from the specified file c:\myfile.

Related Commands

Feedback

Was this page helpful?