Forum Discussion
'Work - Edge' Desktop Shortcut Reappears after deleting and reopening Edge Browser
- Aug 29, 2023
Hi Everyone - The fix for this was released to Microsoft Edge Beta Version 117.0.2045.12. If you have access to the Beta Channel, please test and let us know if the issue has been resolved.
The fix should also be included in the next Stable release, which should be later this week if there are no delays. Thanks!
-Kelly
- Shredwerd009Oct 03, 2023Copper Contributorwe created a PS script and users can run it via a deployed task sequence in software center on their own. I'm actually about to have it run every so often automatically since this doesn't seem to be getting fixed anytime soon.
- David256Oct 03, 2023Copper Contributor
Would you be able to share that script? Having the same issue with a user.
- JASONPEELOct 04, 2023Copper Contributor
This is what we're using. It does not work in ps7 but can easily be modified to work in it. We've seen Chrome and Teams duplicates in the past, so also check for those. We then just packaged it with the intune w32 app wrapper and made it available to our users so they can run it in company portal. But can easily be done the same for sccm.
So it basically just finds the users desktop path. Gets all items on the desktop that are like *Edge*.lnk, *Chrome*.lnk and *Teams*.lnk and if theres more than 1 of each, deletes them.
$DesktopPath = [Environment]::GetFolderPath("Desktop")
$BadEdgeLnks = Get-ChildItem $DesktopPath | Where-Object {$_.Name -like "*Edge*.lnk"}
if ($BadEdgeLnks.Count -gt "1") {
foreach ($BadLnk in $BadEdgeLnks) {
Write-Host "Removing "$DesktopPath\$Badlnk""
Remove-Item "$DesktopPath\$Badlnk" -Force
}
}
$BadChromeLnks = Get-ChildItem $DesktopPath | Where-Object {$_.Name -like "*Chrome*.lnk"}
if ($BadChromeLnks.Count -gt "1") {
foreach ($BadChromeLnk in $BadChromeLnks) {
Write-Host "Removing "$DesktopPath\$BadChromeLnk""
Remove-Item "$DesktopPath\$BadChromeLnk" -Force
}
}
$BadTeamsLnks = Get-ChildItem $DesktopPath | Where-Object {$_.Name -like "*Teams*.lnk"}
if ($BadTeamsLnks.Count -gt "1") {
foreach ($BadTeamsLnk in $BadTeamsLnks) {
Write-Host "Removing "$DesktopPath\$BadTeamsLnk""
Remove-Item "$DesktopPath\$BadTeamsLnk" -Force
}
}