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
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,773 questions
{count} votes