Skip to content

Trying to change default user registry settings through a task sequence

Featured Replies

I'm trying to load a bunch of IE settings changes into the registry so our user's machines will have the default set of trusted sites and whatever preconfigured during our OSD process. I found the following that seemed to help me along quite a bit...

 

http://www.windows-noob.com/forums/index.php?/topic/7772-how-can-i-change-a-hkcu-setting-within-windows-during-an-osd-deployment/

 

Using this as a template, I set it up pretty similarly, swapping file names as needed and such. All in all, the commands being fired look like this...

cmd.exe /c reg.exe load HKEY_LOCAL_MACHINE\defuser c:\users\default\ntuser.dat

cmd.exe /c reg.exe import "IESettings.reg"

cmd.exe /c reg.exe unload HKEY_LOCAL_MACHINE\defuser c:\users\default\ntuser.dat

When I run the task sequence during OSD, I get an error in the SMSTS.LOG...

ERROR: Invalid syntax. InstallSoftware 11/19/2013 2:57:25 PM 2916 (0x0B64)
Type "REG UNLOAD /?" for usage. InstallSoftware 11/19/2013 2:57:25 PM 2916 (0x0B64)
Command line returned 1 InstallSoftware 11/19/2013 2:57:25 PM 2916 (0x0B64)
Process completed with exit code 1 TSManager 11/19/2013 2:57:25 PM 3984 (0x0F90)
Failed to run the action: Commit Changes to Default User. 
Incorrect function. (Error: 00000001; Source: Windows) TSManager 11/19/2013 2:57:25 PM 3984 (0x0F90)
I tried firing the command in cmd.exe, with a similar error stating reg unload was being used improperly. Can someone explain what is going on here? I have this executing at the end of my OSD task sequence so I don't think there should be anything else interfering.
This is the kind of stuff I am loading into the registry from the .reg file. Does this need to be reformatted as HKLM instead of HKCU?
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\mycompany.com]
"*"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1]
"1A00"=dword:00000000

 

  • Author

After reviewing some of the notes from the other thread, I've changed the HKEY_CURRENT_USER lines to HKEY_LOCAL_MACHINE, that seems to make more sense as I'd be modifying the default user profile instead of whatever current user is logged in.

  • Author

Ok, sorted it out, I don't need the path when unloading the registry hive. Easy fix :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.