How to add variable network share path for logonuser in registry?
I want to change the registry entry for OneNote from C:\Users\<user>\Documents\OneNote Notebooks to a network share.
I set this up as following and pushed it out to a test machine via KACE SMA
Set “HKCU\Software\Microsoft\Office\16.0\OneNote\Options\Save!Last Local Notebook Path” to “\\okanagan\homedirs\%USERNAME%\”
The key pushes out and gets added to the registry just fine. However, when I try to save a OneNote file to that new path, it says it does not exist and asks if I want to create it. If I say yes, it does create that OneNote file in the new folder %Username%.
I also tried changing the variable to %LogonUser% without success.
I've been scavenging the internet for a solution on this but so far no luck.
I also came across this post which is a similar issue to mine but unfortunately not quite:
How do I get it to recognize that it should be picking up the current logged on user? Any help would be appreciated!