Mazaxist Posted September 17, 2012 Share Posted September 17, 2012 Hi everyone. I am trying to write a basic script to modify or create a key under HKEY_LOCAL_MACHINE\SYSTEM on a remote PC however i ran into a problem - it just doesnt work, and i have no idea why. it works for HKEY_LOCAL_MACHINE\SOFTWARE for example but not for SYSTEM. Any ideas? this is my script here: (software keys work, but system doesnt!) Dim $Computer $Computer = Inputbox("Type remote computername", "Computername", "") RegWrite("\\" & $Computer & "\HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_SZ", "Hello this is a test2") RegWrite("\\" & $Computer & "\HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey2", "REG_DWORD", "5") RegWrite("\\" & $Computer & "\HKEY_LOCAL_MACHINE\SYSTEM", "TestKey3", "REG_DWORD", "5") any help would be really appreciated!! thank you! Link to comment Share on other sites More sharing options...
JohnOne Posted September 17, 2012 Share Posted September 17, 2012 #RequireAdmin Anywhere in your script, traditionally near the top. 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...
Mazaxist Posted September 17, 2012 Author Share Posted September 17, 2012 #RequireAdminAnywhere in your script, traditionally near the top.WOW! unbelievalbe how easy that was... i feel dumb. thanks so much! 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