registry invalid parameter
#1
Posted 02 September 2012 - 09:11 AM
But when i tried to execute that "cmd" on 2nd pc. It could not done (said: invalid parameter) . I then seen that registry with notepad.
I Noticed:
Every user has different line beetween "HKU" and "Software\Microsoft" like:
HKU\S-1XXXXXXXXXXXXXXXX\Software\Microsoft
SO NOW, HOW TO SET "COMMAND LINE" WHICH CAN PERFORM THAT JOB ON MY EVERY USER?
what command i need set instead of "S-1XXXXXXXXXXXXXXXX" ?? will someone help?
#2
Posted 02 September 2012 - 09:52 AM
Quote
http://support.microsoft.com/kb/959753
http://www.msfn.org/...ve-after-setup/
http://www.msfn.org/...profile-how-to/
Google:
create default user profile xp site:www.msfn.org
...and dig in...
HTH (BTW, I've never tried this - some other esteemed member that HAS done it may be able to specifically help)
#3
Posted 02 September 2012 - 11:05 AM
1. Load it:
reg.exe LOAD HKU\CUSTOM "%ALLUSERSPROFILE%\..\Default User\NTUSER.DAT"
2. Open the registry (regedit) and edit the HKU\CUSTOM.
3. Unload it:
reg.exe UNLOAD HKU\CUSTOM
#4
Posted 02 September 2012 - 12:08 PM
#5
Posted 02 September 2012 - 12:21 PM
1 - Install then MODIFY the pre-existing one AND "replace" during #2, #3, #n INSTALLS
-OR-
2 - INSTALL and WHEN the DEFAULT "NTUSER.DAT" file is CREATED, do the SAME THING as shown.
READ a little - we CANNOT provide you with one as we
1 - DON'T KNOW what "mods" you want
-OR-
2 - DON'T want to "do for you" when you can
2a - Do it yourself
-AND-
2b - Come back when you have problems with it AFTER YOU TRY IT.
The WHOLE IDEA is to provide the "mods" to ANY AND ALL NEW USERS THAT GET DEFINED AFTER INSTALL COMPLETES! ONE TIME and NOT for "each user" AFTER.
Besides, WHAT are you going to do - run a "script" each time a NEW USER is defined?
We don't do "hand on a silver platter" here - we HELP people HELP THEMSELVES?
I hope this clarifies the situation. Read a little, come back with SPECIFIC questions, OK?
#6
Posted 03 September 2012 - 09:27 PM
submix8c, on 02 September 2012 - 12:21 PM, said:
1 - Install then MODIFY the pre-existing one AND "replace" during #2, #3, #n INSTALLS
-OR-
2 - INSTALL and WHEN the DEFAULT "NTUSER.DAT" file is CREATED, do the SAME THING as shown.
READ a little - we CANNOT provide you with one as we
1 - DON'T KNOW what "mods" you want
-OR-
2 - DON'T want to "do for you" when you can
2a - Do it yourself
-AND-
2b - Come back when you have problems with it AFTER YOU TRY IT.
The WHOLE IDEA is to provide the "mods" to ANY AND ALL NEW USERS THAT GET DEFINED AFTER INSTALL COMPLETES! ONE TIME and NOT for "each user" AFTER.
Besides, WHAT are you going to do - run a "script" each time a NEW USER is defined?
We don't do "hand on a silver platter" here - we HELP people HELP THEMSELVES?
I hope this clarifies the situation. Read a little, come back with SPECIFIC questions, OK?
I have not get properly. I think, You mean :-
1. I have to install my xp on formatted partition.
2. Modify the "HKU" registry as i want.
3. Afterwards now will have modifiyed "NTUSER.DAT"
4. i need to copy that "NTUSER.DAT" to xp setup.
5. AND now have to add replace command (which will replace my my current modified "NTUSER.DAT" with what system creates. )
MY QUESTIONS:
<i> am i right above?
<ii> is there any other way as asked?
This post has been edited by FixHELL: 03 September 2012 - 09:48 PM
#7
Posted 04 September 2012 - 12:46 AM
1. If you've already installed the system you just need to do what I wrote in #3. You can add the changes to the NTUSER.DAT and then all new user accounts will use the modified registry settings.
2. If you want to add your changes before actually installing the system then you can do it by modifying a file called i386\hivedef.inf. Just add your changes under the [AddReg] section.
#8
Posted 05 September 2012 - 10:44 PM
tomasz86, on 04 September 2012 - 12:46 AM, said:
1. If you've already installed the system you just need to do what I wrote in #3. You can add the changes to the NTUSER.DAT and then all new user accounts will use the modified registry settings.
2. If you want to add your changes before actually installing the system then you can do it by modifying a file called i386\hivedef.inf. Just add your changes under the [AddReg] section.
I will surely like to do but as i said before every user has a different user id now how i do?
How i determine this?
#9
Posted 05 September 2012 - 11:14 PM
reg.exe /query HKU
to get the IDs and then you can write a script utilising reg.exe to add the entries to each of them.
This post has been edited by tomasz86: 05 September 2012 - 11:34 PM
#10
Posted 06 September 2012 - 12:15 AM
tomasz86, on 05 September 2012 - 11:14 PM, said:
reg.exe /query HKU
to get the IDs and then you can write a script utilising reg.exe to add the entries to each of them.
Not actually, i want to create an unattended windows xp, which could process my registry settings on HKU. Hey folks help me.
#11
Posted 06 September 2012 - 01:20 AM
#2 of what tomasz86 said is the other part.
HKU consists of System-oriented and the CURRENTLY logged on user and does NOT include any/all users that exist/are-defined.
Try looking in "Documents and Settings" folder. Now look in the sub-folders. See the "NTUSER.DAT" files? Those are the Profiles. DO NOT MESS WITH NON-USER ONES! The "Default User\NTUSER.DAT" is the DEFAULT for any/all NEW USERS (no matter WHEN defined) - it is the SOURCE of the New Users (copied right in there to any new user AFTER defined THEN logs on FIRST TIME).
User Profile Folders DO NOT EXIST until the USER-ID's are DEFINED - AND (see that AND AND AND) - The USER-ID Logs On FIRST TIME! Try it! Define a New User and see if the Folder exists! Now Log On as that User - BINGO! Folder and NTUSER.DAT (from DEFAULT) now exist.
Either you have to MODIFY the DEFAULT one and "copy" it in -OR- Modify it via tomasz86' suggestion.
Please do try "Google"....
#12
Posted 06 September 2012 - 02:23 AM
FixHELL, on 06 September 2012 - 12:15 AM, said:
tomasz86, on 05 September 2012 - 11:14 PM, said:
reg.exe /query HKU
to get the IDs and then you can write a script utilising reg.exe to add the entries to each of them.
Not actually, i want to create an unattended windows xp, which could process my registry settings on HKU. Hey folks help me.
Then you should just edit i386\hivedef.inf
The changes will apply to ALL user profiles.
This post has been edited by tomasz86: 06 September 2012 - 02:26 AM
#13
Posted 06 September 2012 - 04:34 AM
tomasz86, on 06 September 2012 - 02:23 AM, said:
FixHELL, on 06 September 2012 - 12:15 AM, said:
tomasz86, on 05 September 2012 - 11:14 PM, said:
reg.exe /query HKU
to get the IDs and then you can write a script utilising reg.exe to add the entries to each of them.
Not actually, i want to create an unattended windows xp, which could process my registry settings on HKU. Hey folks help me.
Then you should just edit i386\hivedef.inf
The changes will apply to ALL user profiles.
OK, I get, i need to edit hivedef.inf
But HOW? I don't have future user id. Read my topic description please.
Or HAVE ANY EXAMPLE?
#14
Posted 06 September 2012 - 05:18 AM
You will see something like this:
[AddReg] HKCU,"AppEvents",,0x00000012 HKCU,"AppEvents\EventLabels",,0x00000012 HKCU,"AppEvents\EventLabels\.Default","",0x00000000,"%DEFAULT_BEEP%"
Scroll the file to the end, add another [AddReg] section and just add your custom lines in the same way.
#15
Posted 06 September 2012 - 06:12 AM
tomasz86, on 06 September 2012 - 05:18 AM, said:
You will see something like this:
[AddReg] HKCU,"AppEvents",,0x00000012 HKCU,"AppEvents\EventLabels",,0x00000012 HKCU,"AppEvents\EventLabels\.Default","",0x00000000,"%DEFAULT_BEEP%"
Scroll the file to the end, add another [AddReg] section and just add your custom lines in the same way.
Hey i asked at HKU not HKCU
I need to know at:
HKU\S-1XXXXXXXXXXXXXXXX
#16
Posted 06 September 2012 - 06:47 AM
There is no HKU during Windows setup. What you add to HKCU will become HKU.
This post has been edited by tomasz86: 06 September 2012 - 06:47 AM
#17
Posted 06 September 2012 - 07:19 AM
http://www.911cd.net...43
From this thread -
http://www.msfn.org/...e/page__st__100
"HKU" vs "HKCU" - Do you see the point now?
Do read up on how a registry ONLINE is built from Individual OFFLINE Files.
#18
Posted 06 September 2012 - 09:33 AM
#19
Posted 06 September 2012 - 10:12 AM
submix8c, on 06 September 2012 - 07:19 AM, said:
For the record, the MS "base resource" is here:
http://support.micro...kb/256986/en-us
Quote
Registry hive Supporting files HKEY_LOCAL_MACHINE\SAM Sam, Sam.log, Sam.sav HKEY_LOCAL_MACHINE\Security Security, Security.log, Security.sav HKEY_LOCAL_MACHINE\Software Software, Software.log, Software.sav HKEY_LOCAL_MACHINE\System System, System.alt, System.log, System.sav HKEY_CURRENT_CONFIG System, System.alt, System.log, System.sav, Ntuser.dat, Ntuser.dat.log HKEY_USERS\DEFAULT Default, Default.log, Default.sav
Folder/predefined key Description HKEY_CURRENT_USER Contains the root of the configuration information for the user who is currently logged on. The user's folders, screen colors, and Control Panel settings are stored here. This information is associated with the user's profile. This key is sometimes abbreviated as "HKCU." HKEY_USERS Contains all the actively loaded user profiles on the computer. HKEY_CURRENT_USER is a subkey of HKEY_USERS. HKEY_USERS is sometimes abbreviated as "HKU."
jaclaz
#20
- ← Reference for WinNT.SIF (unattend) values?
- Unattended Windows 2000/XP/2003
- How to permanently disable Driver Signing during Windows setup →



Help

Back to top










