It is running in the context of the system user.

You could possibly use the RunAsInteractiveUser UDF to immediately run another script containing the sessiontype code along with mapping drives, printers etc that is specific to the user. If you choose to go this route, please post your results and or comments in the following thread. It has been well tested now, but all comments are welcome.

RunAsInteractiveUser -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=198514#Post198514

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1