Skip to main content
Solved

OneDrive force Documents and DEsktop to sync

  • July 7, 2026
  • 6 replies
  • 104 views

AustinHealyMFL
Forum|alt.badge.img+1

I have gotten as far as the OneDrive icon prompts and says “Your IT department wants you to backup your folders” and if they click the botton it does work, but I’d like to have this just forced with no choice.

 

This is what I have setup as far as a policy

 

{
  "title": "Microsoft OneDrive Folder Backup",
  "description": "Silently enable OneDrive Folder Backup for Desktop and Documents and prevent users from turning it off.",
  "type": "object",
  "properties": {
    "KFMSilentOptIn": {
      "title": "Tenant ID",
      "description": "Microsoft 365 tenant ID used to silently enable OneDrive Folder Backup.",
      "type": "string",
      "property_order": 10
    },
    "KFMSilentOptInDesktop": {
      "title": "Back up Desktop",
      "description": "Silently move the user's Desktop folder to OneDrive.",
      "type": "boolean",
      "default": true,
      "property_order": 20
    },
    "KFMSilentOptInDocuments": {
      "title": "Back up Documents",
      "description": "Silently move the user's Documents folder to OneDrive.",
      "type": "boolean",
      "default": true,
      "property_order": 30
    },
    "KFMBlockOptOut": {
      "title": "Prevent users from turning off Folder Backup",
      "description": "Prevents users from stopping backup for Desktop and Documents.",
      "type": "boolean",
      "default": true,
      "property_order": 40
    },
    "KFMSilentOptInWithNotification": {
      "title": "Show notification after backup starts",
      "description": "Display a notification after Desktop and Documents are redirected.",
      "type": "boolean",
      "default": false,
      "property_order": 50
    }
  }
}

Best answer by ChrisMono

Not sure if you have this sorted yet but this is a section from the config profile I deploy:

This opens OneDrive at login, runs the ‘Known Folder Wizard’ silently and removes the ability of the users to opt out and sets it to replicate Desktop & Documents folders.

<key>OpenAtLogin</key>
<true/>
<key>KFMBlockOptIn</key>
<integer>2</integer>
<key>KFMBlockOptOut</key>
<true/>
<key>KFMSilentOptIn</key>
<string>[Your Tenant ID]</string>
<key>KFMSilentOptInWithNotification</key>
<false/>
<key>KFMSilentOptInDesktop</key>
<true/>
<key>KFMSilentOptInDocuments</key>
<true/>

 

6 replies

Forum|alt.badge.img+8
  • Valued Contributor
  • July 8, 2026

have you tested  OpenatLogin in your config? 

 


mattjerome
Forum|alt.badge.img+13
  • Jamf Heroes
  • July 8, 2026

You can use known folder redirection to do what you’re looking for. I may have a working profile for this. I can check.


Forum|alt.badge.img+9
  • Contributor
  • July 8, 2026

Make sure you have pushed out the PPPC payload first before you push out the KFM profile. if you do it out of order it will cuase OneDrive to fail to enforce KFM and will send you down a massive rabbit hole truying to troubleshoot the issue and forcing a plist update to force OneDrive to attempt again to turn on KFM, ask me how I know.


AustinHealyMFL
Forum|alt.badge.img+1
  • Author
  • New Contributor
  • July 8, 2026

have you tested  OpenatLogin in your config? 

 

I have not, I will try it

 

Nelsoni, I have pushed the PPPC first, found that out the hard way lol. thanks!


ChrisMono
Forum|alt.badge.img+2
  • New Contributor
  • Answer
  • July 9, 2026

Not sure if you have this sorted yet but this is a section from the config profile I deploy:

This opens OneDrive at login, runs the ‘Known Folder Wizard’ silently and removes the ability of the users to opt out and sets it to replicate Desktop & Documents folders.

<key>OpenAtLogin</key>
<true/>
<key>KFMBlockOptIn</key>
<integer>2</integer>
<key>KFMBlockOptOut</key>
<true/>
<key>KFMSilentOptIn</key>
<string>[Your Tenant ID]</string>
<key>KFMSilentOptInWithNotification</key>
<false/>
<key>KFMSilentOptInDesktop</key>
<true/>
<key>KFMSilentOptInDocuments</key>
<true/>

 


AustinHealyMFL
Forum|alt.badge.img+1
  • Author
  • New Contributor
  • July 9, 2026

Not sure if you have this sorted yet but this is a section from the config profile I deploy:

This opens OneDrive at login, runs the ‘Known Folder Wizard’ silently and removes the ability of the users to opt out and sets it to replicate Desktop & Documents folders.

<key>OpenAtLogin</key>
<true/>
<key>KFMBlockOptIn</key>
<integer>2</integer>
<key>KFMBlockOptOut</key>
<true/>
<key>KFMSilentOptIn</key>
<string>[Your Tenant ID]</string>
<key>KFMSilentOptInWithNotification</key>
<false/>
<key>KFMSilentOptInDesktop</key>
<true/>
<key>KFMSilentOptInDocuments</key>
<true/>

 

Thanks everyone, Chris, this looks like it’s working now after applying this and rebooting it came up on my machine,  Will deploy to more and come back if it isn’t working but I think this got it.  Thanks@