open certmgr.msc from commanf line on localMachine

user4464366 picture user4464366 · Feb 16, 2015 · Viewed 11.1k times · Source

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

Answer

pepo picture pepo · Feb 16, 2015

This should do it

"C:\WINDOWS\SYSTEM32\MMC.EXE" "C:\WINDOWS\SYSTEM32\CERTLM.MSC"