Jump to content

@Username.filetype syntax problem


Syekick
 Share

Recommended Posts

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 by Syekick
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...