I'm running a windows service (written using .NET) as the user - LocalSystem.
From the service, I need to start a process but as the currently logged on user. If I user Process.Start(process_name), it runs with the privilege of the service by default - that's as LocalSystem. How do I impersonate the currently logged on user and run the process under the same?
EDIT: I won't have access to user credentials - I wouldn't know the password of the logged in user
EDIT2: The 2nd comment in the post marked as answer is what helped.