< Back

Export-PasswordStateApiKey

Sat Jan 18, 2020 6:38 pm

NAME Export-PasswordStateApiKey



SYNOPSIS

Exports a PowerShell credential object to the PasswordState key repository.





SYNTAX

Export-PasswordStateApiKey [-ApiKey] <PSCredential[]> [[-Repository] <String>] [<CommonParameters>]





DESCRIPTION

Exports a PowerShell credential object to the PasswordState key repository.





PARAMETERS

-ApiKey <PSCredential[]>

PowerShell credential object to export.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Repository <String>

Path to repository. Default is $env:USERPROFILE\\.passwordstate



Required? false

Position? 2

Default value (_GetDefault -Option 'credential_repository')

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- EXAMPLE 1 --------------------------



Export-PasswordStateApiKey -ApiKey $cred



Export an API key to the default PasswordState repository

-------------------------- EXAMPLE 2 --------------------------



Export-PasswordStateApiKey -ApiKey $cred -Repository c:\\users\\joe\\data\\.customrepo



Export an API key to the 'c:\\users\\joe\\data\\.customrepo' PasswordState repository



RELATED LINKS