Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


FixHELL

registry invalid parameter

45 posts in this topic

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?

0

Share this post


Link to post
Share on other sites

http://blogs.msdn.com/b/oldnewthing/archive/2007/03/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

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)

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

i get your talks but any way to do that as i asked?

0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

:ph34r:

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

Edited by tomasz86
0

Share this post


Link to post
Share on other sites

: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" ?

0

Share this post


Link to post
Share on other sites

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.microsoft.com/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

0

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Did you get my talk?

Personally I cannot :(.

Are you talking of SID's? :unsure:

http://en.wikipedia.org/wiki/Security_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.ntlworld.com./jonathan.deboynepollard/FGA/problem-report-standard-litany.html

Risk of slipping on a chocolate covered banana:

http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/put-down-the-chocolate-covered-banana.html

jaclaz

0

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

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?

0

Share this post


Link to post
Share on other sites

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

0

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

  • Recently Browsing   0 members

    No registered users viewing this page.