6

Does anyone know how could I installed the following silently ?

C:\> certutil -importpfx -user -f -p [Password] "O:\Certificates\test2.pfx"

I tried using the -silent option but it says it does not exist.

Any other recommendations ?

The certificate install is causing issues with our users, since they are unable to say yes to install it. A Citrix security box appears behind the certificate window which needs to be 'allowed' before they can install the certificate. Some users are able to drag the security warning from the back to the front, but the majority are unable to do so.

If anyone could help that would be great!

Thanks

Jason
  • 2,503
  • 3
  • 38
  • 46
RHQ
  • 123
  • 2
  • 6

2 Answers2

1

This is by design, if you could silently install user certificates it would be a hefty security breach.

jezr
  • 43
  • 6
  • 1
    If we try to install in the system (i.e. without `-user` option), the operation is performed silently. Why is a security breach to install in the user store, but it is not if we install in the system store (of course, running both commands as administrator)? – rigon Jul 27 '16 at 18:29
0

You could use a vbs script such as below to call your bat file during logon, this will install silently..

VBS SCRIPT

Set oShell = CreateObject ("Wscript.Shell") Dim strArgs strArgs = "cmd /c %LOGONSERVER%\netlogon\import-certificate.bat" oShell.Run strArgs, 0, false

BATCH SCRIPT

certutil -f -user -p "PASSWORD" -importpfx "%LOGONSERVER%\netlogon\CERTIFICATE.pfx" NoRoot