user4464366
user4464366

Reputation: 63

open certmgr.msc from commanf line on localMachine

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

Upvotes: 5

Views: 16624

Answers (4)

Abraham
Abraham

Reputation: 1

mmc.exe certlm.msc -s -r localMachine root

It should work - Tested on win2012r2

Upvotes: 0

Emil
Emil

Reputation: 2346

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

certificates.msc

Upvotes: 0

user5980499
user5980499

Reputation: 1

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.

Upvotes: 0

pepo
pepo

Reputation: 8867

This should do it

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

Upvotes: 6

Related Questions