Create child process with no-admin privileges from a admin privileges process?

Jidcoo 111 Reputation points
2022-01-18T06:11:10.093+00:00

Create child process with no-admin privileges from a admin privileges process?
Need to work on the Win7/8/10.
I have googled it.But the situation is more complicated than it seems.
Any simple ideas?
CreateRestrictedToken() is OK?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,487 questions
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 42,161 Reputation points
    2022-01-18T08:37:49.21+00:00

    Use explorer (usually running un-elevated at medium integrity level) to start a new, un-elevated process for you.

    Refer to the Microsoft sample at https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/winui/shell/appplatform/ExecInExplorer

    Additional recommended reading at How can I launch an unelevated process from my elevated process and vice versa?

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful