Question about FSLogix Exclusions for OneDrive. We...
# microsoft-fslogix
j
Question about FSLogix Exclusions for OneDrive. We are using OneDrive's 'Files-On-Demand' function. I've noticed that FSLogix is capturing any downloaded files, and they remain marked as available in new sessions, and it is actually saved in the VHDX. Just curious if you all add an Exclusion for the OneDrive path to prevent this from bloating the user's FSLogix container.
d
Nope I have a script that set all files back to online only. So that the container is not trashed with all the stuff from the cloud
j
Interesting method!! ...care to share that script?
d
yes of course..i need to change the place to search for it in my github on my pc ๐Ÿ˜› Microsoft/OneDrive/OneDrive-SetFilesOnDemandToCloudOnly.ps1 at master ยท Deyda/Microsoft ยท GitHub
j
Excellent! This is EXACTLY what I was looking for. You have saved me hours of research.
๐Ÿ‘ 1
I assume you are running this as a logoff script?
d
exactly
๐Ÿ‘ 1
j
Am I missing something here or are you using a container to hold your local OneDrive cache and then putting nothing in it ever?
Because if you're aiming to "empty the container at logoff", then you could just leave the OneDrive folder on the local drive and it would get discarded when a non-persistent user logs out
j
@James Rankin So are you voting for adding the OneDrive path to Exclusions.xml ? I'm just trying to get some feedback on what people are using in Production, before I head into teh lab for testing.
j
Yeah, if you don't need it, why even save it?
All of my users generally need their caches though
BTW, there's that "bloating the container" mention again - as a rule of thumb, if you're worried about "bloat" in containers at the micro level, it's generally an indication you're using the wrong kind of profile solution
j
I'm just thinking that if we have it as an Exclusion, that OneDrive will perform the "Finding Files" everytime the user logs in...some have thousands of files and it takes time and resources. If captured, this process would be cleaner.
j
So you might as well cache them then. Improve performance
j
Was just typing that in ๐Ÿ™‚