<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx</link><description>Michael Murgolo did a great post on the different ways to adjust default settings when building an image ( Configuring default settings for Windows image deployment ) and one of the options presented was to targeted changes to the Default User Registry</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3557605</link><pubDate>Sat, 09 Mar 2013 18:48:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3557605</guid><dc:creator>Questorfla</dc:creator><description>&lt;p&gt;I left a post in the related technet forum. &amp;nbsp;I have to deal with an old style &amp;quot;workgroup&amp;quot; network, no AD tools for deployment but looking for &amp;nbsp;a way to automate creation of the office VPN (currently only Windows 7). &amp;nbsp;It would be nice if it were scripted to ask the username and password to use for creating the VPN but other things such as the VPN name, IPV4/IPV6 settings and other specific modifications could be written inside it. &amp;nbsp;As a final touch, it needs to create a shortcut on the user&amp;#39;s desktop.&lt;/p&gt;
&lt;p&gt;For the Grand Finale, it needs test the connection and if sucessful, &amp;nbsp;map 3 network drives to the VPN connection. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;THAT would make &amp;quot;My Life&amp;quot; a lot more &amp;quot;automagic&amp;quot; :) &amp;nbsp;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3557605" width="1" height="1"&gt;</description></item><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3306279</link><pubDate>Mon, 18 Jan 2010 02:29:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3306279</guid><dc:creator>Jamie</dc:creator><description>&lt;p&gt;Invalid root in registry key &amp;quot;HKEY_USERS\Test\Control Panel\Desktop\Wallpaper&amp;quot;. (-2147024809 &amp;nbsp;0x80070057&lt;/p&gt;
&lt;p&gt;Is because the script cannot resolve sDefaultUserHive = &amp;quot;&amp;quot;&amp;quot;%USERPROFILE%\..\Default\NTUSER.DAT&amp;quot;&amp;quot;&amp;quot; in a WinPE environment&lt;/p&gt;
&lt;p&gt;Changing it to sDefaultUserHive = C:\Users\Default\NTUSER.DAT&amp;quot;&amp;quot;&amp;quot; Works not is not tidy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3306279" width="1" height="1"&gt;</description></item><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3282383</link><pubDate>Tue, 22 Sep 2009 07:20:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3282383</guid><dc:creator>pandion03</dc:creator><description>&lt;p&gt;What about a way to adjust default settings when you're not preparing an image? The use for this in in Home environments etc when multiple users use the same PC. I have a way to do this in XP, but not yet for Vista or Win7. For XP, I create a Limited User account and customize all the desktop, TaskBar, Start Menu, video, screen saver, windows explorer settings etc. I use registry files (or do it manually) to configure all the IE settings (Zones, Tabs, Advanced Settings, Toolbars, Ad-Ons, Search Providers, etc). Then load this template user hive to import power settings (created with an Admin account and modified to match the name used when loading the hive for the template user) etc. that the Limited User can't make. I either disable or clear the recent programs/documents lists. Then copy this modified profile over the Default (as in Q319974 03/02/2005 Rev2). To fix the Desktop.ini/My Docs folder customization/naming issues, I ad a shortcut in Startup to a batch file that runs rundll32 mydocs,dll,PerUserInit, and then deletes the shortcut so it runs only at 1st logon (easier to manage than runonce registry key). This method addresses the mentioned problems (2a, 2c (Start Menu setting), 2d) for manually replacing the defalt profile mentioned in &lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/deploymentguys/archive/2008/02/18/configuring-default-user-and-computer-settings-for-windows-image-deployment.aspx"&gt;http://blogs.technet.com/deploymentguys/archive/2008/02/18/configuring-default-user-and-computer-settings-for-windows-image-deployment.aspx&lt;/a&gt;. For this use, 2b doesn't matter. I'm not sure if 2e and 2f are issues, but if the apps aren't opened with the template user profile they may not occur. I have not seen the 2e and 2f issues yet. It works well in XP with no issues that I've noticed. Any suggestions for Vista or Win7?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3282383" width="1" height="1"&gt;</description></item><item><title>Is there errors in this script</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3109430</link><pubDate>Thu, 21 Aug 2008 06:38:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3109430</guid><dc:creator>JimKelly</dc:creator><description>&lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;I have added you script into my MDT 2008 deployment, but unfortunately, it producs some errors.&lt;/p&gt;
&lt;p&gt;I found this on devx.com&lt;/p&gt;
&lt;p&gt;Const HKEY_USERS = &amp;amp;H80000003&lt;/p&gt;
&lt;p&gt;Const HKEY_PERFORMANCE_DATA = &amp;amp;H80000004&lt;/p&gt;
&lt;p&gt;which is different from your settings.&lt;/p&gt;
&lt;p&gt;Also, using your line:&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&amp;quot;VBScript&amp;quot; src=&amp;quot;..\..\ZTIUtility.vbs&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;did not run the script. The &amp;quot;..\..\&amp;quot; has to be removed.&lt;/p&gt;
&lt;p&gt;Here is the output from zCFG-DefaultUser.log:&lt;/p&gt;
&lt;p&gt;&amp;lt;![LOG[The task sequencer log is located at X:\windows\TEMP\SMSTSLog\SMSTS.LOG. &amp;nbsp;For task sequence failures, please consult this log.]LOG]!&amp;gt;&amp;lt;time=&amp;quot;12:22:54.000+000&amp;quot; date=&amp;quot;08-21-2008&amp;quot; component=&amp;quot;zCFG-DefaultUser&amp;quot; context=&amp;quot;&amp;quot; type=&amp;quot;1&amp;quot; thread=&amp;quot;&amp;quot; file=&amp;quot;zCFG-DefaultUser&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;![LOG[zCFG-DefaultUser: Actions Start - Updating Default Profile]LOG]!&amp;gt;&amp;lt;time=&amp;quot;12:22:54.000+000&amp;quot; date=&amp;quot;08-21-2008&amp;quot; component=&amp;quot;zCFG-DefaultUser&amp;quot; context=&amp;quot;&amp;quot; type=&amp;quot;1&amp;quot; thread=&amp;quot;&amp;quot; file=&amp;quot;zCFG-DefaultUser&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;![LOG[zCFG-DefaultUser: Loading the Default User hive]LOG]!&amp;gt;&amp;lt;time=&amp;quot;12:22:54.000+000&amp;quot; date=&amp;quot;08-21-2008&amp;quot; component=&amp;quot;zCFG-DefaultUser&amp;quot; context=&amp;quot;&amp;quot; type=&amp;quot;1&amp;quot; thread=&amp;quot;&amp;quot; file=&amp;quot;zCFG-DefaultUser&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;![LOG[zCFG-DefaultUser: Default User Hive Loaded to &amp;quot;HKEY_USERS\Test&amp;quot;]LOG]!&amp;gt;&amp;lt;time=&amp;quot;12:22:57.000+000&amp;quot; date=&amp;quot;08-21-2008&amp;quot; component=&amp;quot;zCFG-DefaultUser&amp;quot; context=&amp;quot;&amp;quot; type=&amp;quot;1&amp;quot; thread=&amp;quot;&amp;quot; file=&amp;quot;zCFG-DefaultUser&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;![LOG[zCFG-DefaultUser: Starting Registry Changes... ]LOG]!&amp;gt;&amp;lt;time=&amp;quot;12:22:58.000+000&amp;quot; date=&amp;quot;08-21-2008&amp;quot; component=&amp;quot;zCFG-DefaultUser&amp;quot; context=&amp;quot;&amp;quot; type=&amp;quot;1&amp;quot; thread=&amp;quot;&amp;quot; file=&amp;quot;zCFG-DefaultUser&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;![LOG[zCFG-DefaultUser: Setting Default User Wallpaper]LOG]!&amp;gt;&amp;lt;time=&amp;quot;12:22:58.000+000&amp;quot; date=&amp;quot;08-21-2008&amp;quot; component=&amp;quot;zCFG-DefaultUser&amp;quot; context=&amp;quot;&amp;quot; type=&amp;quot;1&amp;quot; thread=&amp;quot;&amp;quot; file=&amp;quot;zCFG-DefaultUser&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;![LOG[ZTI ERROR - Unhandled error returned by zCFG-DefaultUser: Invalid root in registry key &amp;quot;HKEY_USERS\Test\Control Panel\Desktop\Wallpaper&amp;quot;. (-2147024809 &amp;nbsp;0x80070057)]LOG]!&amp;gt;&amp;lt;time=&amp;quot;12:22:58.000+000&amp;quot; date=&amp;quot;08-21-2008&amp;quot; component=&amp;quot;zCFG-DefaultUser&amp;quot; context=&amp;quot;&amp;quot; type=&amp;quot;3&amp;quot; thread=&amp;quot;&amp;quot; file=&amp;quot;zCFG-DefaultUser&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;Do you have an updated version of this script, as I am not a programmer and would not know where to start.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3109430" width="1" height="1"&gt;</description></item><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3070023</link><pubDate>Thu, 12 Jun 2008 20:15:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3070023</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Richard,&lt;/p&gt;
&lt;p&gt;what if the key itself doesn't exist. I'd like to make some changes in the Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced key, but it doesn't exist under the Default user profile.&lt;/p&gt;
&lt;p&gt;Help! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3070023" width="1" height="1"&gt;</description></item><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3068822</link><pubDate>Tue, 10 Jun 2008 09:18:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3068822</guid><dc:creator>John Quirk</dc:creator><description>&lt;p&gt;This is an interesting approach, I've never been a fan of copying a modified profile over default as it's often reulted in unpredictable results for me... I also think that any manual modification to the image config is broadly bad practice, so tend to avoid that approach...&lt;/p&gt;
&lt;p&gt;At the moment I don't use the registry hive modification detailed above, but tend to create a BuildSettings.msi which I install as an ActiveSetup entry. This has the advantage of (obviously) running once for every user that logs on and has the ability to modify registry values and where necessary add files, if you're familiar with MSI (or any other scripting language for that matter, SMSInstaller..!) this may be an approach worth looking into.&lt;/p&gt;
&lt;p&gt;The BuildSettings.msi I'm using at the customer I'm with today sets the following (it's an XP ZTI job...):&lt;/p&gt;
&lt;p&gt;Turns ClearType ON, Changes TEMP environment variables, mutes sound, turns on NumLock, create TNS Names ENV Variable and folder.&lt;/p&gt;
&lt;p&gt;JQ&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3068822" width="1" height="1"&gt;</description></item><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3067161</link><pubDate>Fri, 06 Jun 2008 21:16:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3067161</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Cool. Well, if you used this in combination with sysprep, it would seem to give you everything you need. Wouldnt it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3067161" width="1" height="1"&gt;</description></item><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3067133</link><pubDate>Fri, 06 Jun 2008 20:24:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3067133</guid><dc:creator>DeploymentGuys</dc:creator><description>&lt;p&gt;That's correct - as Michael mentioned in his post - This technique has the advantage that all changes to Default User are known and predictable. &amp;nbsp;However, this technique also requires that all changes be reduced to “scriptable” items i.e. Registry or file system changes - no manual configuration can be applied. &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3067133" width="1" height="1"&gt;</description></item><item><title>re: Useful Script Number 5 - Adjusting the Default User Registry Hive</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx#3067125</link><pubDate>Fri, 06 Jun 2008 20:09:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3067125</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Richard,&lt;/p&gt;
&lt;p&gt;So it seems like with this technique, you don't need to use sysprep to copy the settings. You can just do it by loading, changing the settings, and unloading the hive?&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3067125" width="1" height="1"&gt;</description></item></channel></rss>