Sign in to follow this  
Followers 0
w_sp8er

Can you change Windows settings through Registry?

5 posts in this topic

#1 ·  Posted (edited)

1stly:

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

2ndly:

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

3rdly:

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

w_sp8er

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):

[HKEY_USERS\S-1-5-21-1709852576-2100233548-29693413-5378]

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())
Exit

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

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.


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

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  
Followers 0