Syekick Posted January 23, 2008 Author Posted January 23, 2008 try this Run(@Comspec & ' /k certutil -restorekey -f -p "" c:\' & '|' & @UserName & '.pfx', 'c:\') That is IT !! You rock!
Syekick Posted January 23, 2008 Author Posted January 23, 2008 Thank you, everyone, for your help and support. It get's tiresome moving " or / around trying to get syntax right all alone! I think that the , C:\ that was added by Blademonkey gave the tempdir?
blademonkey Posted January 23, 2008 Posted January 23, 2008 That is IT !! You rock! No prob, partial (if not most) of the cred should go to Danny35d since he suggested messing with the working directory option. I just noticed that your working directory was actually c:\ so i suggested you explicitly declare it.what does this mean to certutil? I think it means that you actually have a @username.pfx located on C:\ or at least there's some kind of depency to C:\ that certutil has (and I'm not sure if it's because you're specifying C: in the dos command).you'll just have to mess around with it and email MS to update that sh!tty documentation.i'm so glad we resoved it, i was getting annoyed there.-B ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung
/dev/null Posted January 23, 2008 Posted January 23, 2008 (edited) certutil-restorekey[-f] [-gmt] [-seconds] [-v] [-configCAMachineName\CAName] [-pPassword] BackupDirectory|PFXFile well... and it never came to mind that the '|' could just be an "OR" ?? And it's all there. Just one sentence below the one you posted. http://technet2.microsoft.com/windowsserve...3.mspx?mfr=true "Restores Certificate Services certificate and private key from the specified BackupDirectory or PKCS #12PFXFile" Cheers Kurt Edited January 23, 2008 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
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