Search code examples
onedrive

How to determine if OneDrive is in on demand mode?


I need to determine if OneDrive is in On Demand mode programmatically. I'd think this was just a registry setting, but I've looked through the all of the keys under \HKEY_CURRENT_USER\Software\Microsoft\OneDrive and nothing jumps out at me. Where can I find this setting?


Solution

  • After diff-ing the exported registry keys with the OneDrive On Demand feature both enabled and disabled, it looks like the key that holds this value is LastKnownCloudFilesEnabled under \HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1. Hopefully this helps someone else out in the future.