Monday, October 13, 2008
Deployment Forum HomeDeployment Forum ArticlesDeployment Forum Download LibraryDeployment Forum Member BlogsDeployment Forum Community Forums
Member Login
StandardLiveID


Register
Forgot Password ?



We publish news and announcements about Deployment Forum, Windows and application deployment, the IT industry in general, and of course, Microsoft and its technologies. Examples include new product releases, changes to the Deployment Forum community, and so on. The News Articles tab contains formal news stories, while the Discussion Forum tab is a more informal space in which to discuss news and announcements.
Current Articles | Categories | Search | Syndication
Microsoft Releases the MDT 2008
Microsoft announces the release of the Microsoft Deployment Toolkit (MDT) 2008. This release is an update to Microsoft Deployment, which the company previously released in November 2007.read more...
295 Views | 0 Comments | Categories: Microsoft Corporation
Microsoft Deployment Released
Microsoft announced the official release of Microsoft Deployment. It's is the next version of Business Desktop Deployment 2007 and is the fourth generation deployment solution accelerator, enabling server and desktop deployment.read more...
556 Views | 0 Comments | Categories: Microsoft Corporation
Deployment Forum Relaunches as an ASP.NET Application
Jerry Honeycutt has relaunched Deployment Forum as an ASP.NET application. The goal is to provide a more robust experience and enable our members to contribute even more to the community.read more...
1249 Views | 0 Comments | Categories: Deployment Forum
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:144

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

Privacy Statement  |  Terms Of Use
© 2007 Jerry Honeycutt