Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9242593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:36:44+00:00 2026-06-18T08:36:44+00:00

I am trying to install a certificate for a website on multiple machines through

  • 0

I am trying to install a certificate for a website on multiple machines through a login script. Is this possible or what is the best option? I am most familiar with Batch scripts, if someone has one already working that would be the best option for me, otherwise I can call a vbs in a login script.

I have tried to just call the cert, but there are options for it, I need it to go to Truster Publisher so that the activeX controls are loaded w/o prompts for the user.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:36:45+00:00Added an answer on June 18, 2026 at 8:36 am

    I have actually had the same problem in the past… You will want to explore the following command:

    certutil.exe
    

    This command allows you to install certificates via command line.

    certutil.exe -addstore -f "TrustedPublisher" "<Location_of_Certificate>"
    

    The previous command will get you what you need, just replace the "<Location_of_Certificate>" with the actual location and file name of the certificate.

    Using the ‘ -f ‘ option is a little bit overkill in some instances, but I did script out a way to check if the certificate is already installed FIRST. If it is then I skip trying to run this portion, because you can actually install multiple certificate stores, which is messy.

    To achieve this, first you will need to know the publisher’s name. The way I did this was I installed the Cert on a computer manually, then I ran the following command:

    certutil.exe -store trustedpublisher
    

    This should get you the list of ALL your trusted publishers. Now find the one you need in the list… you will see something like the following (I’m using Microsoft Root Authority as an example):

    Serial Number: xxxx11dxxxx8ffexxxx
    Issuer: CN=Microsoft Root Authority, OU=Microsoft Corporation,
    OU=Copyright (c) 1997 Microsoft
    Corp. NotBefore: 10/1/1997 2:00 AM NotAfter: 12/31/2002 2:00 AM
    Subject: CN=Microsoft Windows Hardware Compatibility, OU=Microsoft
    Corporation, OU=Microsoft Windows Hardware Compatibility Intermediate
    CA, OU=Copyright (c) 19 97 Microsoft Corp. Non-root Certificate
    Template: Cert Hash(sha1): xx xx 1c xx xx 45 xx xx b3 xx xx 94 xx xx
    7c 74 07 33 03 1c No key provider information Cannot find the
    certificate and private key for decryption.

    Now that you have the Issuer of the Cert exactly like it will be listed you can perform the check:

    certutil.exe -store trustedpublisher | findstr "Microsoft Root Authority"
    

    Now that should give you back some of the same info you saw in the original listing. This is what I do to handle the process from start to finish (NOTE I add the cert to both trusted publisher and CA):

    :importCertRoot
    verify >nul
    certutil.exe -store trustedpublisher | findstr "Microsoft Root Authority"  
    IF '%ERRORLEVEL%'=='0' goto importCertLocal
    verify >nul
    certutil.exe -addstore -f "TrustedPublisher" "<Location_of_Certificate>\<CertName.cer>"
    goto importCertLocal
    
    :importCertLocal
    verify >nul
    certutil.exe -store CA | findstr "Microsoft Root Authority"  
    IF '%ERRORLEVEL%'=='0' goto exit
    verify >nul
    certutil.exe -addstore -f "CA" "<Location_of_Certificate>\<CertName.cer>"
    goto next
    

    I hope this helps you out

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install pear package and keep getting this strange error. Can you shed
Trying to install Scrapy on Mac OSX 10.6 using this guide : When running
I'm currently attempting to install a login button for LinkedIn onto my website. I'm
Is there a way to programmatically install a certificate into mozilla? We're trying to
I've bumped into this issue while trying to install a MDM profile onto an
I'm trying to install a GoDaddy SSL certificate on a new load balancer I'm
I'm trying to figure out how to install .csr certificate under Windows but probably
I have a VS 2008 Setup Project created. I am trying to install this
I'm trying to install a certificate in the Local Machine Store in a custom
Am trying to install Eclipse UML2Tools plugin, in Rational Business Developer 7.5.1 Most compatible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.