Quote:
Any way of fixing this


Not really. When you change the user context the path is invalidated, and you switch to a default path.

There are a couple of work-arounds.
  1. Pass the "start in" path to the script and change directory at the start of the script.
  2. For KiXtart, use the @SCRIPTDIR variable rather than relying on the current working directory to determine the context that the script is running in.


If you are changing user context, make sure that you only ever use UNC for the path names for network drives - if you use a mapped drive letter it will probably become invalid when the user changes context.