Aug 24 2023 11:31 AM
End user removes the spam Desktop shortcut labeled 'Work - Edge':
Once they reopen the Edge browser, the app shortcut reappears.
Sep 27 2023 04:30 AM
@Robert_T2000 As far as I know, the Teams shortcut is a different "issue". Every time you log on to a new computer with a new user, Teams Wide Installer checks if teams is allready installed and ads a new shortcut to the desktop. If that shortcut allready exists, it is created with a different name. So I'm guessing this is not really related.
Sep 27 2023 06:35 AM
The only solution I found right now is to block syncing of .lnk files from OneDrive and SharePoint. This causes some of our users to have a bunch of red x's on their desktop short cuts, but other than that has stopped OneDrive from recreating the shortcut repeatedly. Hopefully they'll sort this out soon.
Sep 28 2023 03:55 PM
@RandomInternetPerson I wouldn't use this workaround as it might cause syncing issues. Happened to us and we had to unblock .lnk files.
Sep 29 2023 04:25 AM
Oct 03 2023 05:20 AM
Oct 03 2023 05:57 AM
Oct 03 2023 05:58 AM
Oct 03 2023 09:27 AM
Would you be able to share that script? Having the same issue with a user.
Oct 03 2023 11:47 PM
Oct 04 2023 07:07 AM
Oct 04 2023 07:23 AM
Oct 04 2023 07:23 AM
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
}
}
Oct 04 2023 02:35 PM
Oct 05 2023 07:18 AM
Oct 05 2023 08:51 AM
Oct 09 2023 01:50 PM
Oct 10 2023 12:52 AM
Oct 10 2023 05:10 AM
@James_Esp unfortunately still no solution if you can't apply via GPO... Still running daily compliance searches for the shortcuts and running my powershell script against the list to delete them out... Can't do this forever though!
Oct 10 2023 05:16 AM
Oct 10 2023 05:21 AM