Actually DOC, not true.
$BaseFolder = ExpandEnvironmentVars(ReadValue($BaseKey+'ProfileList','ProfilesDirectory'))
That line will resolve the enviro var an the PC the script is running from, not against.
You need to Split() off %SystemDrive% and determine that with separate code. Sorry, I should have mentioned that before.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.