Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (39 sloc) 2.26 KB

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