PowerShell Credential Store wrapper to use Windows Credential Manager
PowerShell C# Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
WinCredManager
.gitattributes
.gitignore
LICENSE Delete PSWinCredManager to remove PS prefix Apr 21, 2014
README.md
WinCredManager.sln

README.md

WinCredManager

WinCredManager will manage Set/Get PowerShell Credential with Windows Credential Manager.

Install

  • Let's install now, Open PowerShell or Command prompt, paste the text below and press Enter.
powershell -NoProfile -ExecutionPolicy unrestricted -Command 'iex ([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String((irm "https://api.github.com/repos/guitarrapc/WinCredManager/contents/WinCredManager/RemoteInstall.ps1").Content))).Remove(0,1)'

Functions

You can use Get/Set Windows Credential Manager.

Get-Command -Module WinCredManager

Here's Cmdlets use in public

CommandType Name ModuleName
Function Get-WinCredManagerCredential WinCredManager
Function Set-WinCredManagerCredential WinCredManager

Set Credential

You can set your Credentianl to Windows Credential Manager with Set-WinCredManagerCredential function.

$credential = Get-Credential guitarrapc
Set-WinCredManagerCredential -TargetName "git:https://GitHub.com" -Credential $credential -Type Generic

Result

You will get [boolen] for the result.

Type

Get Credential

You can get your Credentianl from Windows Credential Manager with Get-WinCredManagerCredential function.

Get-WinCredManagerCredential -TargetName "git:https://GitHub.com" -Type Generic

Result

  • If credential were found, then you will get specific [PSCredential].

Type