Import-KeyProvider Command | Vmware PowerCLI Reference

Import-KeyProvider

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

Syntax

Import-KeyProvider
-FilePath < String >
[-DryRun ]
[-Password < SecureString > ]
[-ProgressAction < ActionPreference > ]
[-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 ProgressAction ActionPreference named
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

KeyManagementServer

This cmdlet adds a key management server to a vCenter Server system.

This cmdlet retrieves the key management servers registered on the vCenter Server system.

This cmdlet removes the specified key management servers from the vCenter Server systems.

This cmdlet configures the settings of the key management server.

KeyProvider

This cmdlet exports a specified key provider configuration to a specified file. You can use only the NativeKeyProvider type for the KeyProvider parameter.

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

This cmdlet registers a trusted key provider in the workload vCenter Server system which you can use for encryption operations.

This cmdlet unregisters the specified key provider from the workload vCenter Server system. For a trusted key provider, you cannot use it in encryption operations. For a standard key provider, you can remove it from the workload vCenter Server system.

This cmdlet retrieves all key providers from the vCenter Server system.

This cmdlet modifies the settings of the specified key provider.

KeyProviderServiceInfo

This cmdlet adds key provider service information, which comes from the Trust Authority key provider service running in the Trust Authority system or its detailed information in the workload vCenter Server system.

This cmdlet retrieves the key provider services information configured in the workload vCenter Server system.

This cmdlet removes the specified key provider services information from the workload vCenter Server system.