Thursday, December 04, 2008
Deployment Forum HomeDeployment Forum ArticlesDeployment Forum Download LibraryDeployment Forum Member BlogsDeployment Forum Community Forums
Member Login
StandardLiveID


Register
Forgot Password ?



Guests can view and read messages in the community forums, but you must register and log in to Deployment Forum before you can post messages. Click Register at the top of this page. Before posting messages, please read the forum guidelines at the bottom of this page.

Subject: CmdLines in XP and Default User Reg Settings
Prev Next
You are not authorized to post a reply.

AuthorMessages
ScottCooperDotNetUser is Offline

Posts:2

Send Message
05/30/2008 3:02 PM  
As part of a customized XP CD install, I have added a line that adds a registry file containing HKCU entries.  Yet these settings only seem to effect the .Default user, rather than all users by editing the Default User hive (and all users from there).  How can I add registry entries during install that will take effect for all users using CMDLINES?

Here's CMDLINES, the first two commands are from Dell:
[code]
[Commands]
"rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\OEM.INF"
"cmd /c start /min cmd /c .\OEMLink.bat"
"REGEDT32.EXE /S Custom.reg"[/code]

And here is the Custom.reg file with the tweaks I want to install:
[code]
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager]
"WCreatedUser"="1"
"LMVersion"="103"
"LoadedBefore"="1"
"ThemeActive"="1"
"DllName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,52,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,5c,\
  00,54,00,68,00,65,00,6d,00,65,00,73,00,5c,00,52,00,6f,00,79,00,61,00,6c,00,\
  65,00,5c,00,52,00,6f,00,79,00,61,00,6c,00,65,00,2e,00,6d,00,73,00,73,00,74,\
  00,79,00,6c,00,65,00,73,00,00,00
"LastUserLangID"="1033"
"ColorName"="NormalColor"
"SizeName"="NormalSize"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState]
"Use Search Asst"="no"
[/code]

These seem to only then apply to .Default, which is the user in the registry that is used when no user is logged in.
FarmerPeteUser is Offline

Posts:159

Send Message
06/12/2008 11:22 AM  
The default registry hive is located in C:\Documents and Settings\Default user\ntuser.dat. You have to load it as a registry hive. I've been doing this awhile using bat files with the commands:

REG LOAD "HKU\CUSTOM" "%ALLUSERSPROFILE%\..\Default User\NTUSER.DAT"
Regedit /s regmerge.reg
REG UNLOAD "HKU\CUSTOM"


There was a post over at the Deployment Guys blog last week about this very task. They have scripts to use VBSCRIPT to do this. The funny thing is, I had JUST implemented this in VBSCRIPT myself the week before this post came out. I had to use vbscript to change a registry setting not just for the default user, but for every user profile that already existed on the systems.

 

http://blogs.technet.com/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx

You are not authorized to post a reply.
Forums > Deployment Forum > General Discussion > CmdLines in XP and Default User Reg Settings



ActiveForums 3.7
Forum Policies
Minimize

These forums are a user-supported community for IT professionals to exchange deployment tips, solutions, and techniques. For the benefit of all Deployment Forum members, please observe the following guidelines when posting to these forums:

  • We reserve the right to remove any message. Our moderators will remove all messages that are not respectful or productive. Profanity, racism, prejudice, and flaming are not tolerated.
  • Do not advertise products or services. Our moderators will remove all advertisements or service announcements. Product and service recommendations from active Deployment Forum members are encouraged, however.
  • Make sure your question isn't already answered. Before posting questions, search the forums. After ensuring that your questions are unique, post them to the most appropriate forum. This will help reduce noise in the forums.
  • Help make the most of each thread. Do not post unrelated messages to a thread. Also, if you've resolved a question outside of these forums, please share the solution with other members by posting it back to the thread.
  • Do not share confidential information. Confidential information includes product keys and addresses. Our moderators will edit any message containing confidential information, so double-check messages and their attachments before posting them.
  • Post messages using only the English language. For the benefit of all Deployment Forum members, please post your messages using the English language.

We hope that you enjoy using this community. Please submit your comments and feedback on the Comments and Feedback page or post them to the Comments, Feedback forum.



Privacy Statement  |  Terms Of Use
© 2007 Jerry Honeycutt