1
The corporate image being used on my laptop keeps forcing File Explorer to be pinned to my taskbar. I have gone round and round with them about this problem (and others I have had) but am giving up on that front since the other problems are fixed. What I want to try to accomplish as a work around is to create a script that I can run when I log in that will unpin File Explorer from the taskbar for me. I have been all over the internet with various powershell, vbscript and batch files. Most of the scripts work great for any thing pinned to the taskbar EXCEPT File Explorer. Most pinned items are in %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and I can see File Explorer there. However all the scripts I see use the verbs of the object and look for an unpin from taskbar command and run it. File Explorer does not have that. I have searched my entire hard drive and cannot file a file with the unpin command for file explorer. If I delete the file and remove the taskband registr in HKCU the item is not longer pinned, but still shows on the taskbar. If I click it, it will crash and the remove itself. If I refresh explorer.exe, the item is pinned to the taskbar again. Any ideas on how to do this?
Not sure if this works but what if you get the TaskBar to your liking, then create the registry value:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer "NoPinningToTaskbar"=dword:00000001
– HelpingHand – 2018-01-09T20:27:39.690Thanks for the idea, but unfortunately that did not work. I had to reboot to get the registry setting to implement. Upon reboot the File Explorer was back in the taskbar but now I could not unpin it manually. – LtlBear – 2018-01-10T20:19:46.053
You only need to kill and relaunch explorer.exe for it to take effect but maybe policy trumps it. – HelpingHand – 2018-01-10T20:57:45.857
1I did not think about killing explorer to make it take effect. However, killing explorer and restarting explorer pins it back to the taskbar. I don't think this is a policy thing. There are plenty of posts on the internet with people having this same problem. A good chunk of them cannot get it fixed without running a repair in Windows. Unfortunately that is not an option for me and to re-install I have to have the corporate image which has the problem built in. – LtlBear – 2018-01-11T18:45:13.430