Retrieving certificates installed under a different User. Get-ChildItem Cert:\<username>\My

11,444

IMHO it is not possible. User's certificate store is encrypted using user's password. So without the password of the user you cannot access it.

Share:
11,444
bartonm
Author by

bartonm

Updated on June 04, 2022

Comments

  • bartonm
    bartonm about 2 years

    I want the powershell equivalent for retrieving certificates installed under a different user.

    Does something like this exist?

    Get-ChildItem Cert:\<username>\My
    

    More options other just LocalMachine or CurrentUser. This command is executed by a Admin account.

    Update:

    While this does not answer my question, I was able to locate the certifcate on the filesystem. Certs for installed for a local user are located under:

    C:\Users\%USERPROFILE%\AppData\Roaming\Microsoft\Crypto\RSA