Having done a few Windows 10 deployments, one of the common asks from the customer is to remove Microsoft Edge from the Task Bar while adding other commonly used applications like Chrome, Outlook. This is actually a little more challenging than you think.
Long story short, the way I chose to do this is to run a batch file in the Windows startup folder–using Group Policy to propagate. The batch file does the following:
- Clean slate the Task Bar by deleting all of : HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband”
- Use PINTO10V2.exe to pin the program(s) of your choice to the Taskbar (this assumes you have created a directory c:\drv with Pinto10v2.exe inside that folder)
- Leave a stub file to signify this batch file has alread executed once
- Logoff for the changes to take effect
Here’s the Batch File:
REM Batch File to Sanitize the Windows 10 Taskbar
IF NOT EXIST %userprofile%\donotdelete.txt (
cmd /c reg delete “HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband” /f
cmd /c c:\drv\PinTo10v2.exe /pintb “c:\Program Files (x86)\Internet Explorer\iexplore.exe”
cmd /c c:\drv\pinto10v2.exe /pintb “c:\Program Files (x86)\Google\Chrome\Application\chrome.exe”
cmd /c c:\drv\pinto10v2.exe /pintb “c:\Program Files (x86)\Microsoft Office\Office16\OUTLOOK.EXE”
cmd /c c:\drv\PinTo10v2.exe /pinsm “c:\Program Files (x86)\Internet Explorer\iexplore.exe”
cmd /c c:\drv\pinto10v2.exe /pinsm “c:\Program Files (x86)\Google\Chrome\Application\chrome.exe”
cmd /c c:\drv\pinto10v2.exe /pinsm “c:\Program Files (x86)\Microsoft Office\Office16\OUTLOOK.EXE”
echo “Used for Initial Taskbar Sanitization” > %userprofile%\donotdelete.txt
shutdown /l /f
REM End of Script
Use Group Policy to copy the batch file to “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp” folder
I created a c:\drv folder to store generic utilities for this particular customer.
You can download PINto10v2.exe here and copy that to c:\drv:
There are other ways to achieve this, this is just “one” of the ways especially if your intent is to get rid of Edge from the Taskbar.