Problem getting a .reg to run in my task sequence
So Im having trouble with getting a .reg to run in my task sequence. The .reg file is a .reg that places the IE icon on the desktop. I know it works because when I run it on my computer it places the IE icon on the desktop. Here is what I have done. I copied IEDesktopicon.reg to my network shareCreated a package and Program and verified it copied over the IEDesktopicon.regIn the program command line I have c:\windows\regedit.exe /s /c "IEDesktopIcon.reg"Then in my TaskSequence I have it setup to point to that package and that program. However after the OSD Deployment is finished no IE desktop icon
May 19th, 2012 8:58am

What key and value are you updating? Task sequences run as the local SYSTEM account which means if you are updating a value in HKCU, you are updatig the profile for the local SYSTEM account. If you want to affect every user, you'll need to modify the default user profile during the TS.Jason | http://blog.configmgrftw.com | Twitter @JasonSandys
Free Windows Admin Tool Kit Click here and download it now
May 19th, 2012 1:31pm

regedit.exe /s "IEDesktopIcon.reg" should do the trick, you don't need the full path or the /c. What values are you trying to update?My Microsoft Core Infrastructure & Systems Management blog - blog.danovich.com.au
May 20th, 2012 3:06am

i tried the regedit.exe /s and no luck. Maybe its what Jason referred to in his post. the .reg is below. So let me try changing it to update default user instead of HKCU Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}] [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}] @="Internet Explorer (32-bit)" "InfoTip"="@C:\\Windows\\System32\\ieframe.dll,-881" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\DefaultIcon] @="C:\\Windows\\System32\\ieframe.dll,-190" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\InProcServer32] @="C:\\Windows\\System32\\ieframe.dll" "ThreadingModel"="Apartment" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell] @="OpenHomePage" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Private] @="Start InPrivate Browsing" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Private\Command] @="\"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe\" -private" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\NoAddOns] @="Start Without Add-ons" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\NoAddOns\Command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -extoff" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\OpenHomePage] @="Open &Home Page" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\OpenHomePage\Command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Properties] @="P&roperties" "Position"="bottom" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Properties\command] @="control.exe inetcpl.cpl" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\Shellex\ContextMenuHandlers\ieframe] @="{871C5380-42A0-1069-A2EA-08002B30309D}" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\Shellex\MayChangeDefaultMenu] @="" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\ShellFolder] @="C:\\Windows\\System32\\ieframe.dll,-190" "HideAsDeletePerUser"="" "Attributes"=dword:00000024 "HideFolderVerbs"="" "WantsParseDisplayName"="" "HideOnDesktopPerUser"="" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu] "{871C5380-42A0-1069-A2EA-08002B30301D}"=- [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] "{871C5380-42A0-1069-A2EA-08002B30301D}"=- [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30301D}] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30301D}]
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2012 11:22am

Exactly what I said in my post because the inal four values specified above are HKCU which are user specific and thus put into the local SYSTEM's user hive. Why not do this with a Group Policy (I'm pretty sure there's a group policy for it)? Or better yet, train your users how to find an application using the Start Menu? If you must do it, then you need to load the default user's hive and add the changes there.Jason | http://blog.configmgrftw.com | Twitter @JasonSandys
May 21st, 2012 11:52am

Jason I agre with you However have been asked not to use GP and yes I agree with the training,but with some users we are still working on how to turn the computer on :) I'm actually not a huge advocate of spending much time configuring Desktop icons, pinning to taskbar because I'm fortunate to work in an environment were that is not controlled so for me I dont have any desktop icons nor do I use any items pinned to task bar. I have 27" monitors and everythign I need is pinned to the start menu. A lot of users are the same way, but anyways. Anyways here is what I ended up doing. Updated the .reg file to use HKEY_LOCAL_Machine instead of Using HKCU like Jason Suggested. Then Created package with command of regedit.exe /s "IEDesktopIcon.reg" I've tested it about 5 times now and IE Desktop Icon is showing up for all users Here is my Final .reg file Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}] [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}] @="Internet Explorer" "InfoTip"="@C:\\Windows\\System32\\ieframe.dll,-881" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\DefaultIcon] @="C:\\Windows\\System32\\ieframe.dll,-190" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\InProcServer32] @="C:\\Windows\\System32\\ieframe.dll" "ThreadingModel"="Apartment" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell] @="OpenHomePage" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\NoAddOns] @="Start Without Add-ons" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\NoAddOns\Command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -extoff" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\OpenHomePage] @="Open &Home Page" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\OpenHomePage\Command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Properties] @="P&roperties" "Position"="bottom" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Properties\command] @="control.exe inetcpl.cpl" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\Shellex\ContextMenuHandlers\ieframe] @="{871C5380-42A0-1069-A2EA-08002B30309D}" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\Shellex\MayChangeDefaultMenu] @="" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\ShellFolder] @="C:\\Windows\\System32\\ieframe.dll,-190" "HideAsDeletePerUser"="" "Attributes"=dword:00000024 "HideFolderVerbs"="" "WantsParseDisplayName"="" "HideOnDesktopPerUser"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30301D}]
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2012 8:09am

Jason I agre with you However have been asked not to use GP and yes I agree with the training,but with some users we are still working on how to turn the computer on :) I'm actually not a huge advocate of spending much time configuring Desktop icons, pinning to taskbar because I'm fortunate to work in an environment were that is not controlled so for me I dont have any desktop icons nor do I use any items pinned to task bar. I have 27" monitors and everythign I need is pinned to the start menu. A lot of users are the same way, but anyways. Anyways here is what I ended up doing. Updated the .reg file to use HKEY_LOCAL_Machine instead of Using HKCU like Jason Suggested. Then Created package with command of regedit.exe /s "IEDesktopIcon.reg" I've tested it about 5 times now and IE Desktop Icon is showing up for all users Here is my Final .reg file Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}] [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}] @="Internet Explorer" "InfoTip"="@C:\\Windows\\System32\\ieframe.dll,-881" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\DefaultIcon] @="C:\\Windows\\System32\\ieframe.dll,-190" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\InProcServer32] @="C:\\Windows\\System32\\ieframe.dll" "ThreadingModel"="Apartment" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell] @="OpenHomePage" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\NoAddOns] @="Start Without Add-ons" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\NoAddOns\Command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -extoff" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\OpenHomePage] @="Open &Home Page" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\OpenHomePage\Command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Properties] @="P&roperties" "Position"="bottom" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\shell\Properties\command] @="control.exe inetcpl.cpl" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\Shellex\ContextMenuHandlers\ieframe] @="{871C5380-42A0-1069-A2EA-08002B30309D}" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\Shellex\MayChangeDefaultMenu] @="" [HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30301D}\ShellFolder] @="C:\\Windows\\System32\\ieframe.dll,-190" "HideAsDeletePerUser"="" "Attributes"=dword:00000024 "HideFolderVerbs"="" "WantsParseDisplayName"="" "HideOnDesktopPerUser"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30301D}]
May 23rd, 2012 8:11am

Shouldn't the path for regedit.exe be c:\windows\system32(or syswow64)\regedit.exe? Also, not sure if you OS is x86 or x64, but if its x64 then you also need to take into consideration the Windows-On-Windows redirection. Take a look at the following thread: http://social.technet.microsoft.com/Forums/en/w7itprosecurity/thread/6fd3a742-eb5e-47b6-a4f2-fbe6d6212039. When you run .reg file manually, WOW redirection doesn't come into the picture, but if you run .reg file through SCCM, the registry entries get redirected.
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2012 10:00am

Yep, that is correct which is why I always use a run command-line task and disable 64-bit file redirection for things like this.Jason | http://blog.configmgrftw.com | Twitter @JasonSandys
May 23rd, 2012 1:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics