Ok after some testing, I think I am back on track, the only downside is that the file needs to be run from a local drive.

Not a problem, will copy RunAs.EXE to a temp folder then delete when finished.

The username issue I think is sorted.

Will post with code in next couple of days.