This message was deleted.
# microsoft-fslogix
s
This message was deleted.
j
We use PinTo10v2 to pin/unpin on W16, it could work for you.
r
Thanks @jvitech will take a look.
No joy with downloading PinTo10v2 😞 dropbox site wont load for me.
r
something like this maybe? Just update the variable to Chromes name, and this will remove it per user.
$targetFolder = "C:\Users\$env:username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"
$edgeShortcut = "Microsoft Edge.lnk"
$edgeShortcutPath = Join-Path $targetFolder $edgeShortcut
if (Test-Path $edgeShortcutPath) {
Remove-Item $edgeShortcutPath -Force
Write-Host "Microsoft Edge removed from pinned icons."
} else {
Write-Host "Microsoft Edge shortcut not found in the specified location."
}
actually re-reading this, no pinned items, but start menu. Sec let me look on my side
I don't have Chrome, but modify this and it should work. I am no powershell/Script expert, so if you have a better way, go for it. But this does work.
$edgeShortcutNames = @("Microsoft Edge.lnk", "Microsoft Edge.lnk - Shortcut")  # Add any potential variations
$startMenuPath = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
foreach ($shortcutName in $edgeShortcutNames) {
$edgeShortcutPath = Join-Path $startMenuPath $shortcutName
if (Test-Path $edgeShortcutPath) {
Remove-Item $edgeShortcutPath -Force
Write-Host "Microsoft Edge shortcut removed from the Start Menu."
break  # Exit the loop once a matching shortcut is found and removed
}
}
if (!(Test-Path $edgeShortcutPath)) {
Write-Host "Microsoft Edge shortcut not found in the Start Menu."
j
I can upload the one we use if you want and if Ray Posh doesn't do the trick.
o
hi, @Ryan Swanepoel! Not to step on @Ray Davis shoes, but I ran into this a long while back doing a big Win 10 v1809 VDI migration, and created a script for it. Test it in isolation first, as i've not updated the code in 3 years, but it should work with newer versions of Win 10 https://github.com/getvpro/Reset-Win10StartMenu
💯 1
r
@Owen Reynolds All good brother
💯 1
s
Anyone have anything like this for the taskbar. Failed teams update and I now have a ghost teams icon in the taskbar that is blank and cant be unpinned. Teams just loves to screw me every way it can.
😛 1
r
New teams? Man, don't get me started lol
j
stale icons can also be the icon cache
r
Hi All, thank you for all the replies! @Owen Reynolds your script worked for me! @stormlight what worked for us for the taskbar was: ((New-object -Com Shell.Application).NameSpace('shell::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | Where-Object {$_.Name -like "**Chrome*"}).Verbs() | Where-Object {$_.Name.replace('&','') -match 'From "Start" UnPin|Unpin from taskbar'} | %{$_.DoIt()}
❤️ 3