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.
Salvosg1Asked:
Who is Participating?
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 PrewCommented:
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.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_26633354.html

~bp
0
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.
0
Bill PrewCommented:
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.

~bp
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

McKnifeCommented:
Did you read https://connect.microsoft.com/PowerShell/feedback/details/1609288/pin-to-taskbar-no-longer-working-in-windows-10
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.
0

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:
 # http://blogs.technet.com/kristian/archive/2009/04/24/nytt-script-pin-to-taskbar.aspx 
 # http://blog.crayon.no/blogs/ragnar/archive/2009/04/17/pin-applications-to-windows-7-taskbar.aspx 
 #
 # Johan Akerstrom`s blog: http://cosmoskey.blogspot.com 
 #
 # For more information, see the following blog post:
 # http://blog.crayon.no/blogs/janegil/archive/2010/02/26/pin-and-unpin-applications-from-the-taskbar-and-start-menu-using-windows-powershell.aspx 
 #
 # VERSION HISTORY:
 # 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
{
<#  
.SYNOPSIS  
This function are used to pin and unpin programs from the taskbar and Start-menu in Windows 7 and Windows Server 2008 R2
.DESCRIPTION  
The function have to parameteres which are mandatory:
Action: PinToTaskbar, PinToStartMenu, UnPinFromTaskbar, UnPinFromStartMenu
FilePath: The path to the program to perform the action on
.EXAMPLE
Set-PinnedApplication -Action PinToTaskbar -FilePath "C:\WINDOWS\system32\notepad.exe"
.EXAMPLE
Set-PinnedApplication -Action UnPinFromTaskbar -FilePath "C:\WINDOWS\system32\notepad.exe"
.EXAMPLE
Set-PinnedApplication -Action PinToStartMenu -FilePath "C:\WINDOWS\system32\notepad.exe"
.EXAMPLE
Set-PinnedApplication -Action UnPinFromStartMenu -FilePath "C:\WINDOWS\system32\notepad.exe"
#>  
       [CmdletBinding()]
       param(
      [Parameter(Mandatory=$true)][string]$Action,  
      [Parameter(Mandatory=$true)][string]$FilePath
       )
       if(-not (test-path $FilePath)) {  
           throw "FilePath does not exist."  
    }

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

       }
    function GetVerb {
        param([int]$verbId)
        try {
            $t = [type]"CosmosKey.Util.MuiHelper"
        } catch {
            $def = [Text.StringBuilder]""
            [void]$def.AppendLine('[DllImport("user32.dll")]')
            [void]$def.AppendLine('public static extern int LoadString(IntPtr h,uint id, System.Text.StringBuilder sb,int maxBuffer);')
            [void]$def.AppendLine('[DllImport("kernel32.dll")]')
            [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")
        }
        $maxVerbLength=255
        $verbBuilder = new-object Text.StringBuilder "",$maxVerbLength
        [void][CosmosKey.Util.MuiHelper]::LoadString($CosmosKey_Utils_MuiHelper_Shell32,$verbId,$verbBuilder,$maxVerbLength)
        return $verbBuilder.ToString()
    }

    $verbs = @{  
        "PintoStartMenu"=5381
        "UnpinfromStartMenu"=5382
        "PintoTaskbar"=5386
        "UnpinfromTaskbar"=5387
    }

    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"
0
Bill PrewCommented:
Right, have seen that too, but it doesn't seem to follow the 'rules'.

~bp
0
McKnifeCommented:
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.
0
Bill PrewCommented:
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.

~bp
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.