I have a requirement to write a script that will launch a new process, as an existing/logged in user, into there specific session, with powershell.
Ive done some research and it seems as though I can use the ’Wtsapi32′ module to get the user session token, duplicate it and launch the process as that user. However, Im not sure how to call the loaded module. Does anyone have an tips/hints on this? ie for ‘WTSQueryUserToken’?
An example of what my logic and research is here My link