Jump to content



Photo

Can you change Windows settings through Registry?


  • Please log in to reply
4 replies to this topic

#1 w_sp8er

w_sp8er

    Wayfarer

  • Active Members
  • Pip
  • 57 posts

Posted 02 June 2004 - 11:37 AM

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, 02 June 2004 - 11:37 AM.








#2 SlimShady

SlimShady

    AutoIt lover

  • Active Members
  • PipPipPipPipPipPip
  • 2,383 posts

Posted 02 June 2004 - 12:15 PM

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.

#3 w_sp8er

w_sp8er

    Wayfarer

  • Active Members
  • Pip
  • 57 posts

Posted 02 June 2004 - 04:36 PM

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.

#4 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 02 June 2004 - 04:52 PM

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!

#5 beerman

beerman

    :-)

  • Active Members
  • PipPipPipPipPipPip
  • 6,358 posts

Posted 02 June 2004 - 05:11 PM

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.
Posted ImagePosted ImagePosted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users