Web credentials in powershell/C#

shriram 135 Reputation points
2024-01-08T01:38:45.58+00:00

I am having an uwp app using password vault, so my credentials are stored under the Web credential in credential manager and we have a situation so i need to change the publisher id of the app because of this the app will be treated as new app so i planned to run a powershell script to copy data from old app sandbox to new App sand box

But the issue i am facing i can fetch windows credentials details but not the Web credentials. Is there any way to fetch web credentials using c# or even powershell script?

Windows for business | Windows Server | User experience | PowerShell
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

1 answer

Sort by: Most helpful
  1. José Pablo Ramirez (a. k. a. webJose) 430 Reputation points Moderator
    2024-01-08T04:05:48.8666667+00:00

    According to this SO answer it is possible to progamatically access Credential Manager. The answer conveniently points to a Powershell package called CredentialManager.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.