Jump to content


CurtMGray

Trying to change default user registry settings through a task sequence

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.