PowerShell Credential Manager

Provides access to credentials in the Windows Credential Manager

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name CredentialManager -RequiredVersion 1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name CredentialManager -Version 1.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Dave Garnar


(c) 2016 Dave Garnar. All rights reserved.

Package Details



Password management security


Get-StoredCredential New-StoredCredential Remove-StoredCredential Get-StrongPassword


This module has no dependencies.

Release Notes

v2.0 Enhancements and Bugfixes

Implemented pipeline support for Get-StoredCredential.
Implemented pipeline support for New-StoredCredential.
Implemented pipeline support for Remove-StoredCredential.
Improved error handling to respect the Error Action Preference in PowerShell.
Changed AsPSCredential to a Switch parameter and renamed to AsCredentialObject on Get-StoredCredential to make it easier to use.
Added Credentials parameter to New-StoredCredential which accepts a PSCredential object instead of User name and Password.
Added SecuserPassword parameter to New-StoredCredential which accepts a SecureString as the password.
Credential object now returns LastWritten as a DateTime instead of a ComType.FILETIME
Changing license to MIT from GPL
General refactoring and bug fixes.
Updated documentation both online and local.

v1.1 Bug Fix

Fixed a bug where the username specified in the -UserName parameter was not being used to create the credential in the store. The username for the logged on user was being used instead. Issue logged

v1.0 Initial Release

Implementing basic functionality

Get-StoredCredential - Gets one or more credentials from the Windows Credential Manager.
New-Stored Credential - Adds a new credential to the Windows Credential Manager.
Remove-StoredCredential - Deletes a credential from the Windows Credential Manager.
Get-StrongPassword - Randomly generates a new password.


Version History

Version Downloads Last updated
2.0 32,476,751 6/17/2016
1.0 (current version) 2,014 9/7/2015