Export-KeyProvider

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

Syntax

[-FilePath]  <String>
-KeyProvider  <KeyProvider>
[-Force]
[-Password  <SecureString>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
FilePath
String 1 Specifies the path to the file where you want to store the given key provider configuration. If the path leads to a folder, the cmdlet creates a file in the folder.
required
KeyProvider
KeyProvider named
  • pipeline
  • Specifies the key providers that you want to backup.
    optional
    Force
    SwitchParameter named Indicates that the cmdlet overwrites the existing destination files and creates directories to complete the specified file path.
    optional
    Password
    SecureString named Specifies the password to encrypt the exported configuration.
    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.

    Output

    System.IO.FileInfo

    Examples


    Example 1

    Export-KeyProvider -KeyProvider mykp -FilePath c:\myfile

    Exports the 'mykp' key provider configuration to the specified file c:\myfile.

    Related Commands

    Feedback

    Was this page helpful?