Script or registry edit to remove Microsoft edge from taskbar in windows 10

Looking to remove (unpin) Microsoft edge from the taskbar in windows 10 via GPO, to keep my users from using it. Our main website does not support edge and at this time I need to try to keep my users from trying to use it. So I am either looking for a way to edit it out of the registry or using a login script. Either way will work.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
There is a VBScript solution in the question below, let me know if you need help modifying it, should be pretty straight forward to just keep the IE part.

Salvosg1Author Commented:
Bill, My only issue is this is for IE, not MS Edge, So just taking a look the paths would be wrong, and thats part of my issue is I am not sure where Edge lives.
Bill PrewIT / Software Engineering ConsultantCommented:
Yes, I was checking that script a bit on Windows 10 here and see that it is different.  I've been doing a little more poking, and Googling, and so far I have not found a way to remove the icon from the Taskbar via script.  Clearly you can right click the icon and unpin it, but not sure how to get the same affect from script.

Sorry for the false start, I didn't realize Win10 was different in this area, and it seems like Microsoft has made it even harder to shun Edge.

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Did you read
Have just recieved this reply from MS support:

"The items that are pinned to the Start menu or taskbar is a user preference. Applications should not be overriding the user’s preferences. In the long term, programmatically pinning items to the taskbar or Start menu in Windows 10 will not be supported. Only the user will be able to pin items."
If my dictionary MS2english is correct, this should mean: "Dear admin, please let us pin our own stuff there, too, we need it to promote different apps". Further:
This seems to manifest itself with current critical update KB3093266. Once the update is removed, the "Pin to tas&kbar" verb name is available and the pin-item works.
Great. They patched the functionality away.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Salvosg1Author Commented:
Ok I found this, but not sure again were the edge app lies to see if this helps...

"AME: PinnedApplications.psm1
 # AUTHOR: Jan Egil Ring, Crayon
 # DATE  : 06.08.2010  
 # COMMENT: Module with the ability to pin and unpin programs from the taskbar and the Start-menu in Windows 7 and Windows Server 2008 R2.
 # This module are based on the Add-PinnedApplication script created by Ragnar Harper and Kristian Svantorp:
 # Johan Akerstrom`s blog: 
 # For more information, see the following blog post:
 # 1.0 17.04.2009 - Initial release by Ragnar Harper and Kristian Svantorp
 # 1.1 26.02.2010 - Update by Jan Egil Ring. Added the capability to unpin applications.
 # 1.2 06.08.2010 - Update by Johan Akerstrom. Added full MUI support.

function Set-PinnedApplication
This function are used to pin and unpin programs from the taskbar and Start-menu in Windows 7 and Windows Server 2008 R2
The function have to parameteres which are mandatory:
Action: PinToTaskbar, PinToStartMenu, UnPinFromTaskbar, UnPinFromStartMenu
FilePath: The path to the program to perform the action on
Set-PinnedApplication -Action PinToTaskbar -FilePath "C:\WINDOWS\system32\notepad.exe"
Set-PinnedApplication -Action UnPinFromTaskbar -FilePath "C:\WINDOWS\system32\notepad.exe"
Set-PinnedApplication -Action PinToStartMenu -FilePath "C:\WINDOWS\system32\notepad.exe"
Set-PinnedApplication -Action UnPinFromStartMenu -FilePath "C:\WINDOWS\system32\notepad.exe"
       if(-not (test-path $FilePath)) {  
           throw "FilePath does not exist."  

       function InvokeVerb {
        $verb = $verb.Replace("&","")
        $path= split-path $FilePath
        $shell=new-object -com "Shell.Application"  
        $item = $folder.Parsename((split-path $FilePath -leaf))
        $itemVerb = $item.Verbs() | ? {$_.Name.Replace("&","") -eq $verb}
        if($itemVerb -eq $null){
            throw "Verb $verb not found."            
        } else {

    function GetVerb {
        try {
            $t = [type]"CosmosKey.Util.MuiHelper"
        } catch {
            $def = [Text.StringBuilder]""
            [void]$def.AppendLine('public static extern int LoadString(IntPtr h,uint id, System.Text.StringBuilder sb,int maxBuffer);')
            [void]$def.AppendLine('public static extern IntPtr LoadLibrary(string s);')
            add-type -MemberDefinition $def.ToString() -name MuiHelper -namespace CosmosKey.Util            
        if($global:CosmosKey_Utils_MuiHelper_Shell32 -eq $null){        
            $global:CosmosKey_Utils_MuiHelper_Shell32 = [CosmosKey.Util.MuiHelper]::LoadLibrary("shell32.dll")
        $verbBuilder = new-object Text.StringBuilder "",$maxVerbLength
        return $verbBuilder.ToString()

    $verbs = @{  

    if($verbs.$Action -eq $null){
           Throw "Action $action not supported`nSupported actions are:`n`tPintoStartMenu`n`tUnpinfromStartMenu`n`tPintoTaskbar`n`tUnpinfromTaskbar"
    InvokeVerb -FilePath $FilePath -Verb $(GetVerb -VerbId $verbs.$action)

Export-ModuleMember Set-PinnedApplication"
Bill PrewIT / Software Engineering ConsultantCommented:
Right, have seen that too, but it doesn't seem to follow the 'rules'.

This will noit work since it uses the verbs needed were patched away? Or will MS have patched away only "pin" but left "unpin"? I don't think so.
Bill PrewIT / Software Engineering ConsultantCommented:
Unfortunately, all my research seems to indicate there is currently no way to remove Edge from the Taskbar via GPO or scripts.  You can of course right click on it and unpin it on each workstation.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.