Get Cached Credentials in PowerShell from Windows 7 Credential Manager

Question:

Can I do this with some API I am overlooking or do I have to figure out porting the C# .NET API calls mentioned here into PowerShell to make this happen in a script?

Answer:

You can use Add-Type cmdlet to easily port it I believe:

Adapted from here: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/e91769eb-dbce-4e77-8b61-d3e55690b511/

Based on: http://blogs.msdn.com/b/peerchan/archive/2005/11/01/487834.aspx

Source:

Get Cached Credentials in PowerShell from Windows 7 Credential Manager by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply