SkillAgentSearch skills...

PSCredentialTools

PSCredential Tools provides varions methods for securly storing and retrieving credentials used in PowerShell scripts

Install / Use

/learn @microsoft/PSCredentialTools
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PSCredentialTools

PSCredentialTools provides methods for securely generating, storing and retrieving credentials and other sensitive data for use in PowerShell scripts and Desired State Configurations. Credentials can be saved to disk, encrypted with either a pre-shared-key or with a PKI certificate. Credentials can also be stored in Azure KeyVault as an Azure KeyVault Secret.

List of cmdlets

PSCredentialTools includes the following cmdlets:

PSCredentials cmdlets

  • Export-PSCredential: encrypts and saves a PowerShell Credential object to file or to Azure KeyVault
  • Import-PSCredential: decrypts a previously saved Credential back into a PowerShell Credential object
  • New-PSCredential: creates new PowerShell credential object, with a random strong password, and saves it to an encrypted file or to Azure KeyVault

Conversion cmdlets

  • ConvertFrom-FIPSSecureString: Converts a PowerShell SecureString object into encypted text, using a pre-shared-key. It uses the FIPS compliant AES Crypto Provider.
  • ConvertTo-FIPSSecureString: Converts a previously encrypted SecureString with a pre-shared-key back into a PowerShell SecureString object.
  • ConvertFrom-PKISecureString: Converts a PowerShell SecureString object into encrypted text using a provided certificate's Public Key
  • ConvertTo-PKISecureString: Converts a previously encrypted SecureString back into a PowerShell SecureString object using the provided certificate's Private Key

Contributing

If you are interested in fixing issues and contributing directly to the code base, please see the document contributing guide.

License

Licensed under the MIT License.

View on GitHub
GitHub Stars68
CategoryDevelopment
Updated18d ago
Forks14

Languages

PowerShell

Security Score

95/100

Audited on Mar 16, 2026

No findings