Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

registry invalid parameter

- - - - -

  • Please log in to reply
44 replies to this topic

#1
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag
hi all, i've two pc installed xp. frequently i do format my pc. But i've some settings which i always need, hence i did saved all registry setting and converted that to command (i don't think, i should elaborate that how did i convert since it is working on my that pc where had i created that registry)
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?


How to remove advertisement from MSFN

#2
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,331 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag
http://blogs.msdn.co...02/1786493.aspx

The registry settings for new users do not come from the .Default user. Rather, they come from what I've started calling the "template user", which is kept in the file C:\Documents and Settings\Default User\ntuser.dat

http://support.microsoft.com/kb/168475
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)

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#3
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag
You can edit the default user profile (ntuser.dat) like this:

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

Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#4
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag
i get your talks but any way to do that as i asked?

#5
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,331 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag
DUDE! You should for "Unattended INSTALL" to a No-OS-Installed Partition utilize the DEFAULT "NTUSER.DAT" by
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?

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#6
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag

DUDE! You should for "Unattended INSTALL" to a No-OS-Installed Partition utilize the DEFAULT "NTUSER.DAT" by
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?

Edited by FixHELL, 03 September 2012 - 09:48 PM.


#7
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag
Not exactly ;)

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.
Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#8
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag

Not exactly ;)

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
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag
Are you talking about the existing user accounts? You could use

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.

Edited by tomasz86, 05 September 2012 - 11:34 PM.

Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#10
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag

Are you talking about the existing user accounts? You could use

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
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,331 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag
What I said is part of the Information.

#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"....

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#12
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag


Are you talking about the existing user accounts? You could use

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 :whistle: The file is located on your XP CD (ISO). You need to extract / copy it, add changes and then remake the ISO / create a bootable CD.

The changes will apply to ALL user profiles.

Edited by tomasz86, 06 September 2012 - 02:26 AM.

Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#13
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag



Are you talking about the existing user accounts? You could use

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 :whistle: The file is located on your XP CD (ISO). You need to extract / copy it, add changes and then remake the ISO / create a bootable CD.

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
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag
All setting from hivedef.inf will be applied to the future users. You don't need any IDs! Have you actually opened the file?

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.
Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#15
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag

All setting from hivedef.inf will be applied to the future users. You don't need any IDs! Have you actually opened the file?

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
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag
:ph34r:

There is no HKU during Windows setup. What you add to HKCU will become HKU.

Edited by tomasz86, 06 September 2012 - 06:47 AM.

Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#17
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,331 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag
Courtesy of jaclaz -
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.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#18
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag

:ph34r:

There is no HKU during Windows setup. What you add to HKCU will become HKU.


Hey it helped, may you explain codes, which shows with "x" ?

#19
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,579 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Do read up on how a registry ONLINE is built from Individual OFFLINE Files.

For the record, the MS "base resource" is here:
http://support.micro...kb/256986/en-us

The supporting files for HKEY_CURRENT_USER are in the %SystemRoot%\Profiles\Username folder.



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
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag


:ph34r:

There is no HKU during Windows setup. What you add to HKCU will become HKU.


Hey it helped, may you explain codes, which shows with "x" ?


What do you mean?

If you give me one example of a registry setting which you want to add then I'll show you how to modify the hivedef.inf.

Edited by tomasz86, 06 September 2012 - 10:29 AM.

Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#21
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag



:ph34r:

There is no HKU during Windows setup. What you add to HKCU will become HKU.


Hey it helped, may you explain codes, which shows with "x" ?


What do you mean?

If you give me one example of a registry setting which you want to add then I'll show you how to modify the hivedef.inf.



Every line has a "x" with some "zero" at end of that line.
Did you get my talk? I thought it is saying for REZ_SZ, REG_DWORD and REZ_BINARY, But somewhere it's different. How i know this. Have any link for that i asked or you may explain. I can't ask all my modification. I want to do myself.

Edited by FixHELL, 06 September 2012 - 12:21 PM.


#22
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,579 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Did you get my talk?

Personally I cannot :(.

Are you talking of SID's? :unsure:
http://en.wikipedia....rity_Identifier

If you don't try to state, with the most detail you can WHAT you are trying to achieve, it will be improbable that you will get any proper answer, additionally, you may make the people now willing to try and help you upset, and thus loose any support from them :ph34r: .

Standard Litany:
http://homepage.ntlw...ard-litany.html

Risk of slipping on a chocolate covered banana:
http://homepage.ntlw...red-banana.html

jaclaz

#23
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag

Every line has a "x" with some "zero" at end of that line.
Did you get my talk? I thought it is saying for REZ_SZ, REG_DWORD and REZ_BINARY, But somewhere it's different. How i know this. Have any link for that i asked or you may explain. I can't ask all my modification. I want to do myself.

I also don't really understand what you're talking about :no:

That's why I asked for one example. Once it's clear how to add it to the hivedef.inf then it should be easy for you to do the same with the rest of the modifications.

Edited by tomasz86, 06 September 2012 - 12:39 PM.

Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#24
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • Joined 02-September 12
  • OS:none specified
  • Country: Country Flag
i mean, here some examples

HKCU,"Control Panel\Accessibility\HighContrast","Flags",0x00000002,"126"

HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\SmallIcons","SmallIcons",0x00010003,0

HKCU,"Control Panel\Appearance\Schemes","%BRICK%",0x00030001,

You can every line has a x command with some zero.


Like

1st line has: 0x00000002
2nd line has: 0x00010003
3rd line has: 0x00030001

so, can you explain me now?

#25
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • Joined 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag
Do you mean this?

; Registry Data Types
; types with NCLOB don't overwrite existing values
;
; REG_SZ = 0x00000000 (or 0)
; REG_BINARY = 0x00000001 (or 1)
; Reg_SZ_NOCLOBBER = 0x00000002 (or 2)
; REG_BINARY_NOCLOBBER = 0x00000003 (or 3)
; REG_MULTI_SZ_APPEND = 0x0001000A
; REG_MULTI_SZ = 0x00010000
; REG_DWORD = 0x00010001
; REG_MULTI_SZ_NOCLOBBER = 0x00010002
; REG_DWORD_NOCLOBBER = 0x00010003
; REG_MULTI_SZ_DELVAL = 0x00010006
; REG_ADDREG_APPEND = 0x00010008
; REG_EXPAND_SZ = 0x00020000
; REG_EXPAND_SZ_NOCLOBBER = 0x00020002

http://gosh.msfn.org/infs.htm
Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users