CurtMGray Posted November 19, 2013 Report post Posted November 19, 2013 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 Quote Share this post Link to post Share on other sites More sharing options...
CurtMGray Posted November 19, 2013 Report post Posted November 19, 2013 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. Quote Share this post Link to post Share on other sites More sharing options...
CurtMGray Posted November 19, 2013 Report post Posted November 19, 2013 Ok, sorted it out, I don't need the path when unloading the registry hive. Easy fix Quote Share this post Link to post Share on other sites More sharing options...