This one took me a little while. The hard one was Internet Explorer, which I had to do completely differently than the others.
In this post I’ll give two ways to do it, the first way worked for all of them but Internet Explorer, and I was able to do natively without any “3rd” party tools. The second way uses a Free Utility a community member wrote, which I was able to use to Pin Internet Explorer. Note, I was unable to remove Edge from the taskbar, still haven’t figured that one out yet. The Scripts used are located HERE in the subfolder TaskBarPins
Method 1 - Registry Edit & File Copy – Using this to Pin the Office Icons
- Create your Folder for the Source Files on your ConfigMgr Source Share
- Pin all of the Items you want
- Copy the contents from %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar to a Subfolder in your Source called TaskBar
- Export this KEY from the registry to your Source Folder: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
- Edit your exported Registry File, replace HKEY_Current_User with HKEY_LOCAL_MACHINE\defuser, so the string looks like: [HKEY_LOCAL_MACHINE\defuser\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
- Create a Batch file that contains these lines: (This will mount the default profile keys and allow you to import your exported keys into the default user profile registry, and copy the shortcuts into the default user TaskBar location)
reg.exe load HKEY_LOCAL_MACHINE\defuser c:\users\default\ntuser.dat reg.exe import “TaskBarPins\TaskBarPinItems-OfficeOWXP.reg” reg.exe unload HKEY_LOCAL_MACHINE\defuser
- Add Command Line Step in TS - cmd.exe /c TaskBarPins\TaskBarPinItems.cmd, referencing the Windows10 OSD Package My Windows 10 OSD Package. It contains all of the tweaks in one package, which is why in the command line, I have to reference the folder name, then the script.
Method 2 - Using PinTo10.exe tool provided by community member – This was the only way I’ve been successful in getting IE to Pin to TaskBar. Information was found here on Connect.Microsoft.Com – You can get the Utility referenced in that thread HERE – It will also be in the Download I provide with all of the Scripts HERE
- Create your Folder for the Source Files on your ConfigMgr Source Share (I’m using the same folder as the one created for Method 1), mine looks like:
- Create a batch file with these contents call PinTo10-Setup.cmd (Sorry for word wrap)
reg.exe load HKEY_LOCAL_MACHINE\defuser c:\users\default\ntuser.dat reg.exe ADD HKEY_LOCAL_MACHINE\defuser\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v PinIE /T REG_SZ /D “c:\cabs\PinTo10IE.cmd” /F reg.exe unload HKEY_LOCAL_MACHINE\defuser xcopy “TaskBarPins\TaskBar\Internet Explorer.lnk” “c:\programdata\Microsoft\Windows\Start Menu\Programs\Accessories” /Q /Y /I xcopy “TaskBarPins\PinTo10IE.cmd” “c:\cabs\” /Y /S xcopy “TaskBarPins\PinTo10.exe” “c:\cabs\” /Y /S
- Create a batch file with these contents called PinTo10IE.cmd:
- Save those 2 Batch files & the PinTo10.exe you downloaded to your Source Folder, should like similar to my example in Method2 – Step1
- In the TS, add a command line Step: cmd /c TaskBarPins\PinTo10-Setup.cmd
, referencing the Windows10 OSD Package
Basically what’s happening, the Setup Script Adds a line to the RunOnce registry that will trigger a script to call the PinTo10 script on a users’s first logon. It then copies the Shortcut it will PIN in the Taskbar to the ProgramData Folder, the PinTo10.exe Utility & PinTo10.cmd files to c:\Cabs. At first logon, you’ll see a command box popup while it’s doing the pin. Then you’ll see Internet Explorer show up in the TaskBar.
If you like, you can modify the PinTo10.cmd file to include all of the items you wish to PIN, and do all of them in One step, I already had the Office Icons setup, so I didn’t bother changing everything over.