system
April 9, 2011, 12:53am
1
(imported topic written by SystemAdmin)
We are trying to install a .PFX file on two separate accounts (user_acc and admin_acc). The FixLet shows that it runs successfully, however the cert does not get installed. The action script is as follow. It also doesn’t show us trying to install to the admin_acc because we can’t get passed our first obsticle:
extract pfx.tmp
// wait __Download\setup.exe
copy __Download\file2012.pfx “C:\ file2012.pfx”
copy __Download\winhttpcertcfg.exe “C:\winhttpcertcfg.exe”
runhidden cmd.exe /C “C:\winhttpcertcfg.exe -g -i ‘C:\ file2012.pfx’ -c CURRENT_USER\My -a user_acc -p abc.123”
Any help would be greatly appreciated.
Thank you
-MJ
BenKus
April 9, 2011, 6:44am
2
(imported comment written by BenKus)
Is there an extra space in the filename?
You might need to use RunAsCurrentUser.exe to install a cert as a local user.
Ben
system
April 13, 2011, 5:50pm
3
(imported comment written by SystemAdmin)
Thanks for the quick response…
So the command should be like this?
extract pfx.tmp
// wait __Download\setup.exe
copy __Download\file2012.pfx “C:\ file2012.pfx”
copy __Download\winhttpcertcfg.exe “C:\winhttpcertcfg.exe”
runhidden RunAsCurrentUser.exe --w --q cmd.exe /C “C:\winhttpcertcfg.exe -g -i ‘C:\file2012.pfx’ -c CURRENT_USER\My -a user_acc -p abc.123”
Update:
I used the following which failed:
waithidden RunAsCurrentUser.exe --w --q cmd.exe /C “C:\winhttpcertcfg.exe -g -i ‘C:\file2012.pfx’ -c CURRENT_USER\My -a user_acc -p abc.123”
BenKus
April 14, 2011, 5:48am
4
(imported comment written by BenKus)
I think you will need to download runascurrentuser before you run it… Also, I think you got your quotes a little mixed up in the command (and there still was a space in the file name)…
Try something like this:
prefetch RunAsCurrentUser.exe sha1:ee47505ebfb2790b9da8a20ed70e67158e9753d0 size:342528 http://software.bigfix.com/download/bes/RunAsCurrentUser-2.0.3.1.exe
copy __Download\file2012.pfx "C:\file2012.pfx"
copy __Download\winhttpcertcfg.exe “C:\winhttpcertcfg.exe”
wait __Download\RunAsCurrentUser.exe --w cmd.exe /C “C:\winhttpcertcfg.exe” -g -i ‘C:\file2012.pfx’ -c CURRENT_USER\My -a user_acc -p abc.123