'Unpin Internet Explorer from the Taskbar in Windows 10 Build 20H2 using PowerShell
Has anyone found a working solution to unpin Internet Explorer (and other apps) from the Taskbar in Win 10 B20H2 / 21H2?
I tryed ALOT of the solutions in google top searches, but none seems to work with Win10 B20H2.
Export and import of the layout xml is not an option.
They suggest this script, but for me it doesn't work - it executes and returns no errors, but doesn't unpin the shortcut:
$appname = "Microsoft Store"
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$.Name -eq $appname}).Verbs() | ?{$.Name.replace('&','') -match 'Unpin from taskbar'} | %{$_.DoIt(); $exec = $true}
Solution 1:[1]
The example you posted have some typos. You can try the following:
- Execute the following command and find the name of the applications you want to unpin
(New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() |
Sort-Object Name |
Select-Object Name
- Create an array with the apps you want to remove, and unpin it
$appnames = @("App1", "App2", "App3")
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() |
Where-Object { $appnames -contains $_.Name }).Verbs() |
Where-Object {$_.Name.replace('&','') -match 'Unpin from taskbar'} |
ForEach-Object {$_.DoIt()}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Swampen |