Remove Personal OneDrive from Quick Launch

There’s only 1 OneDrive but if you have a Microsoft Business account it will appear twice in your Windows Quick Launch. Once as your “business” OneDrive which is appended with your company name and a second time as your “personal” OneDrive. This can often provide confusion to end users and I find that it is better to just “hide” that personal OneDrive from appearing in the Quick Launch all together.

There are a couple of ways to do this. You could use the registry editor but this is very manual and cumbersome. Or you could use Endpoint Manger (AKA Azure AD Intune) using a script. The latter is my personal choice, works as expected and allows you to monitor the managed devices outcome as the script deploys.

So how do we make this happen?

Assuming you have Endpoint Manager set up and configured to manage your companies devices a simple PowerShell script is all you need to meet your end goal.

From Endpoint Manager go to:

  • Devices
  • Scripts
  • Click Add
  • Choose Windows 10
  • Provide a name for your script
  • Upload your PS script file (see below)
  • Select to run the script using logged on credentials
  • Assign the script to your licensed users

Once you have the script configured it will be deployed to clients on the next sync from Endpoint Manager. From the properties of the script you will be able to view Device and User status as the script deploys and completes.

Voila! Simple

Power Shell Script

new-psdrive -Name HKCR -PSProvider registry -Root HKEY_CLASSES_ROOT
$registryPath = "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
$Name = "System.IsPinnedToNameSpaceTree"
$value = 0
Set-ItemProperty -Path $registryPath -Name $name -Value $value