5

I need to start "certmgr.msc" from "cmd.exe" on "localMachine" repository so that I can import\export certificates. I have tried the following commands but the "certmgr.msc" keeps opening on "currentUser".

certmgr.msc -s -r localMachine root
mmc.exe certmgr.msc -s -r localMachine root
certmgr.msc -v -s -r localMachine my
user4464366
  • 63
  • 1
  • 1
  • 4
  • If you intend to manage a server via command line, PowerShell is a better option, http://blogs.technet.com/b/scotts-it-blog/archive/2014/12/30/working-with-certificates-in-powershell.aspx – Lex Li Feb 25 '16 at 13:07

4 Answers4

5

This should do it

"C:\WINDOWS\SYSTEM32\MMC.EXE" "C:\WINDOWS\SYSTEM32\CERTLM.MSC" 
pepo
  • 8,644
  • 2
  • 27
  • 42
0

Create custom console by adding Certificate snapin and targeting it to local computer. Then save this console to .mmc file. You can refer this saved file in command line. Can also distribute this custom console to other machines.

0

Below should start MMC console with both nodes CurrentUser & Local Computer

certificates.msc
Emil
  • 2,196
  • 2
  • 25
  • 24
0
mmc.exe certlm.msc -s -r localMachine root

It should work - Tested on win2012r2