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
new behavior, we're seeing "Person 1 - Edge" now. they are on Version 116.0.1938.81 Kelly_Y
We ended up just pushing out a policy that blocks OneDrive from syncing *Edge*.lnk, *Chrome*.lnk and *Teams*.lnk files.
- phillyj05Oct 25, 2023Copper ContributorThank you setting it to 5000 worked, continued looking after posting here.
- jgudmundson_RETSDOct 25, 2023Copper Contributoradd
-PageSize 1000
to the end of Get-PnPListItem. Make sure to test first as yes this will make it run, but these types of scripts can go south. fast. - phillyj05Oct 23, 2023Copper Contributor
Thank you, this worked for me once (a little over 3k files) but now I run into an error:
Get-PnPListItem : The attempted operation is prohibited because it exceeds the list view threshold.
Does anyone know if there a threshold on the amount of files that can be deleted?
- Pookie1302Sep 19, 2023Copper ContributorAny more info on how to get this to work?
- JASONPEELSep 14, 2023Copper Contributor🙂
We have/had some users who ended up with over 100000 Chrome shortcuts, similar to whats happening with these Work - Edge shortcuts and use a similar script. It takes hours. What we used to do was create a folder called "NewDesktop" copy all the files/folders from their Desktop folder minus the shortcuts to that. Then delete the desktop folder, then rename NewDesktop to Desktop. Was great until we enabled retention policies and now cant delete folders that arent empty so have to delete files 1 by 1. Can never win. - chrisco341Sep 14, 2023Brass ContributorI will warn, the above powershell is not a fast process lol. Took about 15 mins to loop through a user who had 3000 shortcuts. As with any powershell scripts, please do your own testing and vetting before running against production accounts.
- chrisco341Sep 14, 2023Brass Contributor
Hopefully this helps someone, here is powershell to remove all of these links from a user's one drive. You can also load a user list (or i did a compliance search for users with the offending links) and loop through it.
$AdminEmail = "youradminemail @ domain.com" $SharePointURL = "https://yourtenant-admin.sharepoint.com" Connect-SPOService -Url $SharePointURL $OneDriveURL = "https://yourtenant-my.sharepoint.com/personal/user_domain_com" Set-SPOUser -Site $OneDriveURL -LoginName $AdminEmail -IsSiteCollectionAdmin $True Connect-PnPOnline -Url $OneDriveURL -Interactive $ListItems = Get-PnPListItem -List "Documents/Desktop" ForEach($Item in $ListItems) { $FileUrl = $Item.FieldValues['FileRef'] if ($FileUrl -like "*Work - Edge*") { Remove-PnPListItem -List "Documents/Desktop" -Identity $Item -Force Write-Host $FileUrl } } - JASONPEELSep 14, 2023Copper Contributor
chrisco341 Weird. Not seeing it here thankfully. Have asked a few people and luckily nothing is coming up, but the shortcuts are blocked from syncing.
- chrisco341Sep 14, 2023Brass ContributorThe red x we are getting tickets for is on the actual onedrive blue cloud icon in the system tray (the icon that displays red x for sync error, spinning arrows when syncing, etc)
- JASONPEELSep 14, 2023Copper Contributor
- Robert_T2000Sep 13, 2023Brass Contributorchrisco341 Exactly! Same RED X slammed us with tickets.
- chrisco341Sep 13, 2023Brass Contributor
JASONPEEL we tried doing the same, but then we got dozens of tickets because onedrive showed a red x for not syncing the shortcuts. We can't win lol. MS just needs to fix the issue.