I am trying to create a script that moves some of the windows known folders to other locations/drives, I have succeed moving RoamingAppData but failed on LocalAppData
I am using this script to change the location, but it gives me an error when run on LocalAppData.
On RoamingAppData, the script Returns a 0 and the location of RoamingAppData changed, even if the shortcut %appdata% stopped pointing to anything.
But when I try the same with LocalAppData, the script returns -2147024809 which I haven't been able to trace anywhere, on the support page for the core function the script uses there is nothing about error numbers, and google search didn't even find anything related with the number on it.
Is there any other way of changing the location of LocalAppData using PowerShell?