web analytics
OneDrive Context Menu Fix
Microsoft 365,  OneDrive,  Windows

How to Add OneDrive to the Windows Context Menu

Recently I ran into an issue with OneDrive context menu on a Windows 10 computer. Normally when the OneDrive sync client installed, you can control file behaviors via the Windows context menu. The OneDrive actions include Sharing, Version History, and deciding if the file should be synced to the machine or kept only online. This menu is extremely helpful in making your PC feel as though it is one with your portion the OneDrive cloud.

OneDrive Context Menu Options
OneDrive Context Menu Options

The Problem

However, on the PC I logged into, those OneDrive menu items were not there when I selected a file. It was as if OneDrive wasn't installed at all.

Missing OneDrive Context Menu
Missing OneDrive Context Menu

This of course was not true, as this was a fresh, new Windows 10 PC and OneDrive is there by default. If you log into your Windows 10 PC with your Microsoft account, then you get more features with the OneDrive sync client as well.

Back to the issue – I checked to make sure the OneDrive sync client was running, and it indeed was. I checked to make sure the OneDrive virtual folder was there, and indeed it was.

OneDrive virtual folder
OneDrive Virtual Folder

I even rebooted my computer, which is a drastic measure to get this issue fixed 🙂

Then I searched online and found no documentation that would tell me why I was having this issue. So finally, I did what every reasonable person would do, I complained on social media. It wasn't a proud moment, but one born out of desperation!

The result of my complaining was I received help from none other than Jeff Teper, the CVP at Microsoft responsible for many collaboration technologies, including OneDrive! Jeff put me in contact with Gaia Carini [LinkedIn], the person in charge of OneDrive syncing! Not only did Gaia know what the issue was exactly, but she quickly got me fixed up.

The Reason

The issue surfaced because I was logged into the PC with the default admin account – the one created when Windows was configured. In my case, this was a virtual machine in Azure, so it was the admin account I configured on the setup screen before provisioning. This means that Explorer was in elevated mode and OneDrive was running in per-user mode.

The Solution

Microsoft had investigated this issue before, so the fix was quick. If you want to read up on how to install via the per-machine model, this Microsoft doc will help: Install the sync app per machine. If you are like me and already have it installed but in per-user mode, then follow these easy steps to fix it!

  1. Open a Windows command prompt (run as Administrator) on the affected computer, and change directory to %localappdata%\Microsoft\OneDrive
    %localappdata% usually means “C:\users\[your username]\AppData\Local\ . It may be helpful to open this folder in Windows Explorer just to find the sub directory you will need.
  2. What you are looking for is the OneDriveSetup.exe application. In my case, it was in the folder:  %localappdata%\Microsoft\OneDrive\21.150.0725.0001.
  3. From the Windows command prompt, go into the folder where OneDriveSetup.exe is located.
  4. Then run this command: OneDriveSetup.exe /allusers

If you have done the steps correctly, the OneDrive installation process will run. Once it is finished, your context menu should include the OneDrive options!

The Video

Want to see the process instead of just reading about it above? Then you are in luck! The one-minute video is below.

Summary

This issue isn't going to happen for most people. But if it does, then you have the fix! Microsoft is working on a per-machine rollout to fix this issue automatically, but there is no timeline for that to be completed at this time.

 

 


As an independent consultant, I am dedicated to partnering with my clients to drive their success. Leverage the skills of a Microsoft MVP to elevate your project to new heights. I invite you to connect with me to discuss how my expertise can benefit your organization.
Contact Me: CollabFront.com/contact/


2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.