Jump to content
Sign in to follow this  

Can you change Windows settings through Registry?

Recommended Posts


I've written a script that sets up each pc we build @ wrk w/ the same Windows settings (about 500+ lines).


I read somewhere that all of the changes can actually be made via the Registry. So what I did, after a fresh install of Windows XP Home +sp1 on a new PC, was:

1) extracted the Registry (into .reg file) using RegShot

2) setup Windows as usual (w/ above script)

3) re-extracted the Registry (into .reg file) (again w/ RegShot)

4) compared the 2 .reg files & extracted into a 3rd .reg file the changes made (wonderful little proggie RegShot is :huh2: )

then on another fresh install, merged the .reg file into the Registry using my (much smaller) new au3 script & rebooted.

What I expected to happen...didn't. :D


Ok what I'm asking is, does any1 know how (if it is even possible) to do what I'm trying?


Edited by w_sp8er

Share this post

Link to post
Share on other sites

The settings from the registry you put in the registry file:

Are some (or all) of them from the hive key: HKEY_CURRENT_USER ?

If that's the case I don't know what the problem is... Else:

Don't use the settings from HKEY_USERS, because the keys there are computer specific.

Use HKEY_CURRENT_USER instead of (example):


Good luck.

Share this post

Link to post
Share on other sites

tnx SlimShady for your reply & the info, i'll look into it & get back to you in the next couple of days if i have no luck.

Share this post

Link to post
Share on other sites

If you *need* HKEY_USERS, then the following might help. (Requires the latest AutoIt unstable with RegEnumKey support):

MsgBox(4096,"Example", getUserKey())

Func getUserKey()
   Local $i = 0
      $i = $i + 1
      $x = RegEnumKey ( "HKEY_USERS", $i)
   Until StringLen($x) > 16 And Not StringInstr($x, "classes")
   Return  "HKEY_USERS\" & $x & "\"

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post

Link to post
Share on other sites

you also, have to watch the hard drive when trying to do what you are trying to do. i assume that you are trying to put windows back into a certain state, after a fresh install of windows... you have to account for drivers, possible dll, exe, and inf files... doing just a restore of the registry won't work because the calls could reffer to different things that you hadn't already installed into the fresh install.




Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...