Hello, has there been an update to remove Edge from taskbar?
This .ps1 file removes MS Store but Edge is still pinned in taskbar.
Thank you
This .ps1 file removes MS Store but Edge is still pinned in taskbar.
Thank you
Code:$UnpinnedList = @('Edge', 'Microsoft Store') # https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/8#issue-227159084 # $GetString = @' [DllImport("kernel32.dll", CharSet = CharSet.Auto)] public static extern IntPtr GetModuleHandle(string lpModuleName); [DllImport("user32.dll", CharSet = CharSet.Auto)] internal static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax); public static string GetString(uint strId) { IntPtr intPtr = GetModuleHandle("shell32.dll"); StringBuilder sb = new StringBuilder(255); LoadString(intPtr, strId, sb, sb.Capacity); return sb.ToString(); } '@ $string = Add-Type $GetString -PassThru -Name GetStr -Using System.Text $UnpinFromTaskbar = $string[0]::GetString(5387) foreach ($App in $UnpinnedList) { ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{ $_.Name -match $App }).Verbs() | ` ?{ $_.Name -eq $UnpinFromTaskbar } | %{ $_.DoIt(); $exec = $true }

