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 Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,480 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
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,306 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jack J Jun 24,296 Reputation points Microsoft Vendor
    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