• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
FixHELL

registry invalid parameter

45 posts in this topic

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

More generally, those are HEX values.

The common notation used is to pre-fix a hex number with 0x.

0x1=1

...

0xA=10

....

0xF=15

....

0x00000002=2 (in "fixed format" hex)

0x00010003=65539

0x00030001=196609

http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=361

As tomasz86 :thumbup just posted, some of these hex values correspond to a data type .

jaclaz

0

Share this post


Link to post
Share on other sites

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?

Alternatively, you can look into cmdlines.txt. This is a more documented approach. Also you can google more solution if you run into problems. Editing hivedef.inf requires user to put in inf syntax which not many user knows.

cmdlines.txt msdn

Scroll to Cmdlines.txt section. Read the last sentence.

Basically you need to put in winnt.sif

[Unattended]
OemPreinstall=Yes

I did it this way:

A 'cmdlines.txt' in SOURCEXP\$OEM$ folder <- create manually this folder

A ForLoopT12.cmd in SOURCEXP\$OEM$ folder <- create manually this file

Many reg files in SOURCEXP\$OEM$ folder <- export all your reg tweaks to this location

In 'cmdlines.txt, content as

[Commands]
"ForLoopT12.cmd"

Content of ForLoopT12.cmd

for %%e in ("*.reg") do regedit.exe /S "%%e"

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

Not worked somewhere.

Ok let me know, how i change "Control Panel" view to "Thumbnails" using this "hivedef.inf"

0

Share this post


Link to post
Share on other sites

What does that have to do with what you quoted? You are not making any sense at all that I can tell.

Can you give several examples of what you want? Maybe one of them will make sense.

I assume your first language is not English. Can you get a friend who does speak English to help you explain yourself better? Or will you tell us what languages you speak? Maybe someone here also speaks that language and can help translate.

Cheers and Regards

0

Share this post


Link to post
Share on other sites

FixHELL, get real. Post some actual registry code you have. Beating around the bush is pointless.

0

Share this post


Link to post
Share on other sites

Really! I'm giggling, you could not get my talk. Since i'm replying with my cell hence i can't state the actual registry, but you can use regshot!

If i flashback at mind, i got i need to modify "Vid" and "Mode" please check with "Regshot".

Anyway whether you still did not comprehend, so this moment, will you reply how to use "HKU\S-1XXXXXXX\Software\Microsoft" registry at RunOnce?

And also help me out here:

Edited by FixHELL
0

Share this post


Link to post
Share on other sites

:wacko: :wacko: :wacko:

I think that instead of giggling you could at least try to be a little more polite, otherwise soon there will be no-one willing to help you. It's your problem so it's you to provide us with detailed information, not the other way round :ph34r:

This one registry entry is responsible for thumbnails view of the Control Panel in Windows XP:

[HKEY_USERS\S-1-5-21-823518204-839522115-1202660629-500\Software\Microsoft\Windows\ShellNoRoam\Bags\34\Shell]
"Vid"="{8BEBB290-52D0-11D0-B7F4-00C04FD706EC}"

This should work in hivedef.inf:

[AddReg]
HKCU,"Software\Microsoft\Windows\ShellNoRoam\Bags\34\Shell","Vid",,"{8BEBB290-52D0-11D0-B7F4-00C04FD706EC}"

You may find Reg2Inf useful when converting the desired registry entries.

Edited by tomasz86
0

Share this post


Link to post
Share on other sites

Please note that the OP wants this for ALL users (AFAICT) during "Unattended" Install. The Registry Entries the OP has listed is for CURRENT User and the OP wants it for ALL Users and WILL NOT WORK one-by-one UNTIL each user is actually DEFINED.

That's why I suggested that the change be made to DEFAULT so that WHEN any given User (including the INITIAL Administrator, if kept via nLite, which the OP did NOT say they were using) the changes would be "picked up" at Logon (when the User Profile/Folder) is created.

Now... in the HIVEDEF file - how would it be done (entries) for DEFAULT user based on the Reg entries given?

(I really don't know myself - I linked to modding a Basic "Default" NTUSER.DAT and possibly "replacing" it during install).

The MISUNDERSTANDING the OP has is that HKU is the HIVE needing changed - NOT SO! It's the INDIVIDUAL one(s) BENEATH it which ONLY "HKCU" (under the s-Value for the Given Logon - DO NOT CHANGE THAT ONE) and OR "DEFAULT" (which is NOT what one can ACTUALLY mod - the "HKU\.DEFAULT" one - ref HKU\s-Value=HKCU). It's GOT to be nodded in the NTUSER.DAT of the "Documents and Settings\Default).

HTH the confusion.

0

Share this post


Link to post
Share on other sites

@submix8c

I don't think that there exists any detailed documentation on this but basing on my testing I can say that there exist no real users when the hive files are applied. What is applied to HKCU becomes HKLM and HKU too. That's why adding the HKCU entries to the hivedef.inf should be enough because they will be applied to HKCU/HKLM/HKU. The NTUSER.DAT will be created later and should contain all the changes :)

I'll test it again today using the hivedef.inf to check if everything works as expected.

Edit: Tested. Works.

I added this to hivedef.inf:

[AddReg]
HKCU,"Control Panel\Desktop\WindowMetrics","MinWidth",0x00000002,"-255"

It should change the size of taskbar icons so that only icons (no text) is displayed. This is the result after on a fresh installation:

9tLCY.jpg

The entry is present in both HKCU & HKU (no HKLM because "Control Panel" is not present there at all).

Edited by tomasz86
0

Share this post


Link to post
Share on other sites
The entry is present in both HKCU & HKU (no HKLM because "Control Panel" is not present there at all).
I am... SOOO confused! You mean that appears DIRECTLY UNDER "HKU"???

My Running System:

HKCU = HKEY_CURRENT_USER <- Me (Current User)

HKU = HKEY_USERS <- Top-Level - Sub-"Folders" only

HKU\.DEFAULT <- Contents (?) of "Documents And Settings\DEFAULT\NTUSER.DAT" - The Defaults for any New User

HKU\S-1-5-18 <- Local System

HKU\S-1-5-19 <- NT Authority Local Service

HKU\S-1-5-19_CLASSES <- (empty)

HKU\S-1-5-20 <- NT Authority Network Service

HKU\S-1-5-20_CLASSES <- (empty)

HKU\S-1-5-21(etc) <- Me (Current User - Administrator Account)

HKU\S-1-5-21(etc)_CLASSES <-Me (Current User - Administrator Account)

http://support.microsoft.com/kb/243330

0

Share this post


Link to post
Share on other sites

I should have been more clear. Sorry :blushing:

This is exactly where the entry appears:

HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

HKEY_USERS\.DEFAULT\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

HKEY_USERS\S-1-5-21-1957994488-507921405-1343024091-500\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

The last one being the Administrator account (there are no other accounts in the system).

Moreover, it's also present in NTUSER.DAT. After loading it to HKU\CUSTOM (see #3):

HKEY_USERS\CUSTOM\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

All of this means that all changes added to hivedef.inf become default values for all system accounts created later. For me this is WAY simpler than playing with cmdlines or using other "documented" methods :lol: Just add the modifications to hivedef.inf and you're done.

Edited by tomasz86
0

Share this post


Link to post
Share on other sites

EGG-ZACTLY what I was hoping you'd say!

"Current User" (HKCU) in the context of the HIVEDEF apparently means "DEFAULT" at "build" time!

Don't know about anyone else, but I'd say "Case Closed". OP needs tonly o add appropriate entries.

THANK you tomasz86 for the "testing"! :thumbup Useful! :w00t:

"You da man!"

"No, YOU da man!"

"No, YOU..."

0

Share this post


Link to post
Share on other sites

No problem :) I also wasn't 100% sure about this but now I am. I wish I had known it earlier :lol: I'll try to use this method to set the folder view to details, custom resolution, Start Menu small icons and some other things. After more testing I'll post a reply here so keep an eye on this topic ;)

Edited by tomasz86
0

Share this post


Link to post
Share on other sites

No problem :) I also wasn't 100% sure about this but now I am. I wish I had known it earlier :lol: I'll try to use this method to set the folder view to details, custom resolution, Start Menu small icons and some other things. After more testing I'll post a reply here so keep an eye on this topic ;)

With all due respect to everyone involved :), I wouldn't call this exactly "news" :ph34r:

http://www.windowsitpro.com/article/tips/jsi-tip-2520-how-can-i-customize-registry-settings-prior-to-installing-windows-2000-

Or am I missing something? :unsure:

jaclaz

0

Share this post


Link to post
Share on other sites

With all due respect to everyone involved :), I wouldn't call this exactly "news" :ph34r:

http://www.windowsitpro.com/article/tips/jsi-tip-2520-how-can-i-customize-registry-settings-prior-to-installing-windows-2000-

Or am I missing something? :unsure:

Right but I haven't really seen this method mentioned in many places :P Most people seem to try using cmdlines or other "common" methods. Even if the hive files are mentioned, they usually talk about hivesys/hivesft but not that much about hivedef.

0

Share this post


Link to post
Share on other sites

Right but I haven't really seen this method mentioned in many places :P Most people seem to try using cmdlines or other "common" methods. Even if the hive files are mentioned, they usually talk about hivesys/hivesft but not that much about hivedef.

Sure :), but "popular" is not necessarily a synonym of "good" or "better" ;), it simply means "popular", as well "obscure" or "rarely talked about" is not a synonym of "bad" or "worse", if you prefer I was surprised :w00t: at your (and submix8's) surprise at seeing this approach work allright..... (as documented - in few places - at least since 2K times :angel )

jaclaz

0

Share this post


Link to post
Share on other sites

Well, to be sure, the "hooks" between the info is there now. I couldn't find it although I was sure it had to be there somewhere.

Now YOU da man!

(sorry, tomasz86, you have been dethroned. :w00t: Finder still reigns but - where were you on this earlier? <-rhetorical )

0

Share this post


Link to post
Share on other sites

(sorry, tomasz86, you have been dethroned. :w00t: Finder still reigns but - where were you on this earlier? <-rhetorical )

Oww, comeon, this is unfair to tomasz86 :w00t: me still thinks he's da man. :thumbup (as much as I'm still The Finder ;))

You da man disputes tend to soon become like .... :ph34r:

3f326c08-856f-44d4-9463-eb62696917da.jpg

jaclaz

0

Share this post


Link to post
Share on other sites

If anyone's interested, you can also also change the location of user folders through HIVEDEF.INF. Just go to [strings] and change these lines as you wish:

U_SHELL_FOLDERS_APPDATA="%USERPROFILE%\Application Data"
U_SHELL_FOLDERS_DESKTOP="%USERPROFILE%\Desktop"
U_SHELL_FOLDERS_FAVORITES="%USERPROFILE%\Favorites"
U_SHELL_FOLDERS_NETHOOD="%USERPROFILE%\NetHood"
U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\My Documents"
U_SHELL_FOLDERS_PRINTHOOD="%USERPROFILE%\PrintHood"
U_SHELL_FOLDERS_PROGRAMS="%USERPROFILE%\Start Menu\Programs"
U_SHELL_FOLDERS_RECENT="%USERPROFILE%\Recent"
U_SHELL_FOLDERS_SENDTO="%USERPROFILE%\SendTo"
U_SHELL_FOLDERS_START_MENU="%USERPROFILE%\Start Menu"
U_SHELL_FOLDERS_STARTUP="%USERPROFILE%\Start Menu\Programs\Startup"
U_SHELL_FOLDERS_TEMPLATES="%USERPROFILE%\Templates"
U_SHELL_FOLDERS_COOKIES="%USERPROFILE%\Cookies"
U_SHELL_FOLDERS_MYPICTURES="%USERPROFILE%\My Documents\My Pictures"
U_SHELL_FOLDERS_LOCAL_SETTINGS="%USERPROFILE%\Local Settings"
U_SHELL_FOLDERS_LOCAL_APPDATA="%USERPROFILE%\Local Settings\Application Data"
U_SHELL_FOLDERS_CACHE="%USERPROFILE%\Local Settings\Temporary Internet Files"
U_SHELL_FOLDERS_HISTORY="%USERPROFILE%\History"

These are taken directly from Win2k's HIVESYS.INF so they may differ a little bit in case of XP/2003.

Edited by tomasz86
0

Share this post


Link to post
Share on other sites

Inside HIVESFT.INF you can also change the path to "Documents and Settings". Go to [strings] and change:

[Strings]
DEFAULT_PROFILES_DIR="%SystemDrive%\Documents and Settings"

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.