Since MS OneNote is still around in companies, also used in Citrix environments, it’s important to make sure the OneNote cache folder is being redirected to a location outside the roaming profile. Because it can take up a lot of space, redirection of the cache folder is mandatory. Whether you use MS roaming profiles, Citrix UPM profiles or VMware UEM profiles, you don’t want to have the OneNote cache roaming in your profile.
Natively, Microsoft doesn’t provide a solution to centrally redirect the OneNote cache folder. No Group Policy exists in which you can configure a redirect. Of course you can instruct your users to manually configure this, but that doesn’t make sense in larger environments.
The solution lays in the use of junctions. A simple batch script can create a junction which would redirect the OneNote cache folder to your homedrive. This script can be deployed by any means you have at hand.
Important for this to work are specific permissions for users who will be subject to OneNote Cache redirection script. Either a local GPO or Domain GPO needs to be configured on the device to give these users permission to ‘Create symbolic links’.
Under Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment – Create Symbolic Links add the users you’d like to able to create symbolic links.
Edit 2020: Since Microsoft took over FSLogix, using the FSLogix profile container solution has become my preferred method. I doesn’t mean the above method has become invalid, but my from my personal perspective, the FSLogix profile container solution is superior to the solution written down in this blog.