Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid values for -CertStoreLocation? #266

Closed
cosmoKenney opened this issue Jun 27, 2018 — with docs.microsoft.com · 2 comments
Closed

Valid values for -CertStoreLocation? #266

cosmoKenney opened this issue Jun 27, 2018 — with docs.microsoft.com · 2 comments

Comments

Copy link

How does one know what values to specify for -CertStoreLocation? Let's say I want to add to local machine trusted root certification authorities?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Copy link

ghost commented Jul 4, 2018

Hey,

hope this helps - if you open Powershell (as admin) and type "set-location cert:" you can then type e.g. "dir" or "dir LocalMachine" to get a list of valid CertStoreLocation values -

PS Cert:> dir LocalMachine
Name : TrustedPublisher
Name : ClientAuthIssuer
Name : Remote Desktop
Name : Root
Name : TrustedDevices
Name : CA
Name : Windows Live ID Token Issuer
Name : eSIM Certification Authorities
Name : AuthRoot
Name : AAD Token Issuer
Name : FlightRoot
Name : TrustedPeople
Name : My
Name : SmartCardRoot
Name : Trust
Name : Disallowed
Name : Homegroup Machine Certificates
Name : SMS

So to import into the local machine trusted root certification authorities store, the command would be:

Import-Certificate -FilePath C:\Path\To\cert.cer -CertStoreLocation Cert:\LocalMachine\Root

Hope that helps :-)

@cosmoKenney
Copy link
Author

@baarsd , that's so cool! Thanks for posting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant