Intune KFM not enabling with script

Copper Contributor

(I am part time I.T. with limited training in deployment.)

 

Silent Configuration of Onedrive is working great! However, it will not automatically begin to "protect the known folders". What am I potentially doing wrong?

 

Here is the script I am using from Microsoft.

 

Script Link

 

5 Replies

Hi @Dnel29,

 

I didn't had a detailed look at your script but I'm using a very simple approach which is working very well. I use Per Larsens Script for KFM settings from here:

 

https://osddeployment.dk/2018/07/06/how-to-deploy-onedrive-known-folder-move-with-intune/

 

SNAG-0064.png

 

and in addition I use Administrative Templates for all the other settings:

 

 

SNAG-0063.png

 

It's just a matter of time until we have the KFM settings also available in the Administrative Templates available. But for now we have to set the KFM keys by Intune Management Extension.

Give it a try, this combination works very solid.

 

best,
Oliver

 

I have not tested for a while but I had this working using the following OMA-URIs.

NameSilentAccountConfig
DescriptionSilently configure OneDrive using the primary Windows account
OMA-URI./Device/Vendor/MSFT/Policy/Config/OneDriveNGSC~Policy~OneDriveNGSC/SilentAccountConfig
Data typeString
Value

<enabled/>

Name

KFMOptInNoWizard
DescriptionSilently redirect Windows known folders to OneDrive
OMA-URI./Device/Vendor/MSFT/Policy/Config/OneDriveNGSC~Policy~OneDriveNGSC/KFMOptInNoWizard
Data typeString
Value<enabled/> <data id="KFMOptInNoWizard_TextBox" value="Insert Your Azure Tenant ID"/> <data id="KFMOptInNoWizard_Dropdown" value="0"/>

Tried the OMA-URIs today and can confirm it's working.

Hi @almennn,

 

sure this works but only if you have ingested the OneDrive ADMX also which is not listed in your OMA-URIs. The bad thing about ingesting OneDrive is that the "Administrative Templates" feature in Intune, the one I mentioned above is also ingesting the OneDrive admx. So you risk to generate a conflict as you can only ingest the original OneDrive admx from one source. MS will update the OneDrive ingestion they use within the Administrative Templates to have the KFM included in near future. So for now it is more safe to use the PowerShell script for the KFM settings to avoid possible conflicts and use the native "Administrative Templates" for all available settings of OneDrive and as soon as MS has updated you can skip the PowerShell script and use only the Administrative Templates only to configure all from Intune.

 

best,

Oliver

Thanks, everyone! I got it working after some trial and error. Right now we are just testing so I did use the admx onedrive ingesting. Hopefully, when we are ready to fully implement Intune the KFM will be within the admin templates.