This is a quick blog about how to remove the OneDrive Personal Icon from Windows 10. Some users find seeing multiple OneDrive icons in their file browser confusing.
So, I created a script to remove this.
Start-Transcript -Path "C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\RemoveOneDrivePersonalIcon.log" $OneDriverPersonalIcon = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -ErrorAction SilentlyContinue If ($OneDriverPersonalIcon){ try { Get-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" | Remove-Item -Force -Verbose Write-Output "Remove OneDrive Personal Icon" } catch { Write-Error "Error: $($_.Exception.Message)" } } else { Write-Output "OneDrive Personal Icon not found" } Stop-Transcript
The script logs to the “C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\” folder so you can pick it up with the “collect diagnostics” button in Microsoft Intune.
You can also create a Win32App to package the script. Look at another post of mine to create a comparable Win32App Package.
Another option is to create a Remediation to do so. Check out this post on another remediation.
Nice! Works great. Thank you very much for this.
Generally speaking, is there a “best” way to make system changes like this? Script vs app vs remediation?
Hi Michael,
I don’t think there is a “best” way. It always depends. For this kind of configuration I try to use the remediations. But! Not every customer has the proper licensing. So, that’s where the “It always depends” comes in. Then I use an application because it use s a detection method. These kind of configuration are often reset by a Windows Feature update and then need to be configured again. Hence the preference for the detection method of the Win32App.
Thanks,
Niels
Thanks Niels, I usually did this manually through registry, always giving me headaches
You’re welcome!
Thanks! Very useful for removing that annoying icon throughout the oranisation.
Thanks for your comment!