dtilley Posted April 8, 2005 Share Posted April 8, 2005 We are using the following AutoIt script on some Windows 95/98 PC's: RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL\UPDATE", "NetworkPath", "REG_SZ", "\\BR_USERS\sys\public\config.pol") If I check that key before and after the, the change is made. However, after the computer is rebooted the registry setting is reverted back to it's old value. Any ideas as to what might be causing this and/or what we are doing wrong would be appreciated! Thanks, D- Link to comment Share on other sites More sharing options...
Lazycat Posted April 8, 2005 Share Posted April 8, 2005 I think, you need write the same data into both HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET and HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001. This works under NT's, not sure about W9x. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
dtilley Posted April 8, 2005 Author Share Posted April 8, 2005 Thanks for the idea, unfortunatly the CurrentControlSet001 does not exist in Windows9x. I have went through the registry (searched multiple times) to verify that there are no other occurences of the entry which may be resetting the value back to it's prior value. I am stumped because it appears to be changed, but doesn't "stick". Also, if I change it manually it seems to work...wierd. Thanks for the idea though. D- Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 8, 2005 Share Posted April 8, 2005 do you have any virus scanners or spyware/adware programs because those might block it [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
dtilley Posted April 8, 2005 Author Share Posted April 8, 2005 Virus scanner - Yes Spyware scanner - No I don't believe the AV (F-Prot) would prevent this, but I will try and find out. Thanks for the suggestion. D- Link to comment Share on other sites More sharing options...
dtilley Posted April 11, 2005 Author Share Posted April 11, 2005 OK, I am a complete moron... AutoIt was changing the key to "\\USERS\sys\public\config.pol" However, in that config.pol file the value was being changed back to the old one. Thanks again for the suggestions. 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