Share via

Create a process that runs as a different user from a windows service

WhatsaMattaU 0 Reputation points
2024-04-26T22:56:14.7833333+00:00

Hi,

From a Windows Service running under a virtual service account, is it possible to create a process that runs as a different user?

I have tried Process.Start using a ProcessStartInfo structure with user credentials. The process runs but when I query the current user from the launched process, it is the virtual service account.

Thank you

Windows for business | Windows Client for IT Pros | User experience | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.