Syekick Posted January 23, 2008 Posted January 23, 2008 (edited) I'm trying to duplicate the following DOS command certutil -importPFX -p "" c:\%username%.pfx I can't figure out how to write that I want a specific file type (.pfx) for the logged on user, @UserName. I've tried a lot of things that don't work. For example: Run('certutil -importPFX -p c:\' & @UserName ".pfx") Run('certutil -importPFX -p c:\' & @UserName & ".pfx") Run('certutil -importPFX -p c:\' & @UserName & .pfx) I've chanted, ranted, and raved at the script but that hasn't helped either. A little direction if you please. Edited January 23, 2008 by Syekick
Developers Jos Posted January 23, 2008 Developers Posted January 23, 2008 Try: Run(@Comspec & ' /c certutil -importPFX -p c:\' & @UserName & '.pfx') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Syekick Posted January 23, 2008 Author Posted January 23, 2008 Try: Run(@Comspec & ' /c certutil -importPFX -p c:\' & @UserName & '.pfx') Great. I'd have never done this. Thanks. I can build from here. \ Thank you, Now back to my attempt at certutil -restorekey
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now