Solved

cert import script, batch file, ca , pfx

Posted on 2014-03-19
4
990 Views
Last Modified: 2014-03-20
Hi experts..

 i have batch file for importing the pfx cert from local drive to the IE personal store.
i notice that the script is importing with Export key enabled, but i want to disable export key during the cert import.
can you please help...

Regards,
SK
0
Comment
Question by:Skumar_CCSA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 39941564
If you are using certutil for import update your command to reflect

certutil -user -importpfx my cert.pfx NoExport
0
 

Author Comment

by:Skumar_CCSA
ID: 39941572
for /F "delims=" %%f in (c:\scripts\logs\cert_name.log) do certutil -f -user -p "cat!" -importpfx c:\cert\pfx\%%f  >>>>%logpath% 2>&1
:end

I use the above command....
can you pls help me where to put no export ?
0
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 39941620
for /F "delims=" %%f in (c:\scripts\logs\cert_name.log) do certutil -f -user -p "cat!" -importpfx c:\cert\pfx\%%f NoExport >>>>%logpath% 2>&1
:end
0
 

Author Closing Comment

by:Skumar_CCSA
ID: 39944505
thank you so much...
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Restore get-aduser functionality 8 20
Bizarre IP Address / Port Blocking Windows 7 13 56
Add a second combobox VBA Excel 8 34
VB script help 23 30
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question