I think that when you start a process, the user it belongs to is the same as the user that owns the parent process. That is, if you start Command Prompt as Gandalf and then run Notepad.exe
then you'll run Notepad as Gandalf, even if you're logged in as Sauron.
With this in mind, it sounds to me like what you want to do is run Windows Explorer as the user of your choice (using runas
), and then anything you run through it will be run under the user you selected - that includes executables, shortcuts and files (when you "run" a file through Windows Explorer, it just runs the application it's associated with and passes the name of the file as an argument). Just be sure to kill Windows Explorer before you run it, otherwise it'll just open up some folder.
I'm afraid I can't test this since I only have one user account on my system.