How to Add the publisher to the trusted publishers store on all clients?

365 timviec 45 Reputation points
2023-03-29T03:45:50.2633333+00:00

Hi, I have a problem adding a certificate to the trusted publisher store.

I ran this command in cmd with admin rights but cmd said certmgr.exe not found:

certmgr.exe -add certificate.cer -c -s -r localMachine TrustedPublisher

screenshots-53193

If there is any solution or explanation to my problem please leave a comment.

Thanks!

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
Developer technologies | .NET | Other
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Jack J Jun 25,296 Reputation points
    2023-03-29T06:01:47.24+00:00

    @365 timviec ,Welcome to Microsoft Q&A, based on my test, I reproduced the same problem with you.

    Please try the following steps to solve your problem:

    1. Open Visual Studio.
    2. On the menu bar, select Tools > Command Line > Developer Command Prompt or Developer PowerShell.
    3. Please enter the following command to active the tool User's image
    4. Then you could use the following command to add the publisher to the trusted publishers store:
      CertMgr /add CertificateFileName.cer /s /r localMachine trustedpublisher
    

    Hope my steps could help you.

    Best Regards,

    Jack


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.