Web credentials in powershell/C#

shriram 125 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?

C#
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.
10,962 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 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 Answers by the question author, which helps users to know the answer solved the author's problem.