Jump to content

Recommended Posts

Posted

RunAs($sAdminUser, $sdomain, $sAdminPassword, 0, @ComSpec & " /c " & 'REG ADD & ' $KEY_x64 ' & /v & ' $VALUE ' & /t & ' $TYPE ' & /d & ' $DATA ' & /f"', "", @SW_HIDE)

I keep getting a syntax error, and quotes in autoit are the bane of my existence.  Can anyone help me out with what I might be doing wrong?

Thank you so much!

  • Moderators
Posted

Try this. If it does not work, please provide the values of your vars.

RunAs($sAdminUser, $sdomain, $sAdminPassword, 0, @ComSpec & ' /c ' & 'REG ADD "' &  $KEY_x64 & '" /v'  & $VALUE & ' /t' & $TYPE & ' /d' & $DATA & ' /f', "", @SW_HIDE)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
×
×
  • Create New...