PsychOfMSE1 Posted October 29, 2014 Posted October 29, 2014 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 JLogan3o13 Posted October 29, 2014 Moderators Posted October 29, 2014 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!
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