OneDrive files on demand only for specific libraries

%3CLINGO-SUB%20id%3D%22lingo-sub-1526505%22%20slang%3D%22en-US%22%3EOneDrive%20files%20on%20demand%20only%20for%20specific%20libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1526505%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%20I'm%20using%20a%20script%20to%20sync%20some%20Sharepoint%20Libraries%20with%20the%20OneDrive%20sync%20client.%20The%20script%20is%20pushed%20to%20out%20Win10%20client%20through%20Intune%20%2F%20Endpoint%20Manager.%20(%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Ftabs-not-spaces%2FCodeDump%2Fblob%2Fmaster%2FSync-SharepointFolder%2FSync-SharepointFolder.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Ftabs-not-spaces%2FCodeDump%2Fblob%2Fmaster%2FSync-SharepointFolder%2FSync-SharepointFolder.ps1%3C%2FA%3E%20).%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20script%20is%20working%20fine%20and%20the%20libraries%20are%20synced.%20But%20for%20an%20application%20we're%20using%20it's%20nessecary%20that%20some%20of%20those%20libraries%20are%20set%20to%20'always%20keep%20on%20this%20device'%20so%20that%20all%20files%20are%20allways%20cached%20locally%20on%20the%20device.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20looking%20for%20an%20solution%20where%20I%20can%20set%20the%20option%20'always%20keep%20on%20this%20device'%20for%20specific%20synced%20folders%2Flibraries.%20Does%20anyone%20know%20how%20to%20achieve%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1526505%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESync%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi! I'm using a script to sync some Sharepoint Libraries with the OneDrive sync client. The script is pushed to out Win10 client through Intune / Endpoint Manager. ( https://github.com/tabs-not-spaces/CodeDump/blob/master/Sync-SharepointFolder/Sync-SharepointFolder.... ).


The script is working fine and the libraries are synced. But for an application we're using it's nessecary that some of those libraries are set to 'always keep on this device' so that all files are allways cached locally on the device.

 

I'm looking for an solution where I can set the option 'always keep on this device' for specific synced folders/libraries. Does anyone know how to achieve this?

 

Thank you!

0 Replies