beaswax19 Posted January 5, 2016 Share Posted January 5, 2016 I'm having an issue with this script: (I'm a total newbie at coding in autoit and coding in general)#include <MsgBoxConstants.au3>#RequireAdmin$answer = InputBox("Customizer","Please enter the users name:")RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner", "REG_SZ", $answer)What I am trying to accomplish is the Answer of the inputbox modifies the key in the registry. I cannot seem to get something simple to work, Ive tried running it as an admin and without to no avail. This should be simple. Am I even on the right track? Thanks, John Link to comment Share on other sites More sharing options...
JohnOne Posted January 5, 2016 Share Posted January 5, 2016 RegWrite("HKLM64\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization", "REG_SZ", $answer) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
beaswax19 Posted January 6, 2016 Author Share Posted January 6, 2016 Thank You so much.One more thing.I want to be able to add users to the local administrator group. How can this be accomplished.This is what I am trying to accomplish which can be done via the command prompt, but how can I accomplish this in autoit?net localgroup Administrators /add FECC\HelpDesk Link to comment Share on other sites More sharing options...
JohnOne Posted January 6, 2016 Share Posted January 6, 2016 You still use command prompt, but through autoit via Run function AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
beaswax19 Posted January 6, 2016 Author Share Posted January 6, 2016 Can you provide an example for me>? I'm sorry to be such a newbie. Link to comment Share on other sites More sharing options...
JohnOne Posted January 6, 2016 Share Posted January 6, 2016 Something like...Run(@ComSpec & " net localgroup Administrators /add FECC\HelpDesk")I;m not familiar with it, but there are tons of examples about the forum. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
beaswax19 Posted January 6, 2016 Author Share Posted January 6, 2016 I tried your suggestion but It still wont work. Your script doesn't error out though just nothing happens. I have looked on the forums all day and I'm at a complete loss. Link to comment Share on other sites More sharing options...
JohnOne Posted January 6, 2016 Share Posted January 6, 2016 For a start you probably #requireadminhttps://www.google.co.uk/search?hl=en-GB&as_q=add+user+to+local+group&as_sitesearch=https%3A%2F%2Fwww.autoitscript.com%2Fforum AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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