This has been on my mind for sometime. I can open task manager by pressing Ctrl + Shift + Esc and on the second tab (Processes), I can easily press Alt + S -- Show processes from all users to elevate my task manager without any prompts whatsoever. And voila, I have a powerful tool to play with. I've been unable to find any documents explaining this and I'm very curious about how this feat is achieved; since the button should actually ask for a prompt but does not.
What you are describing is called Auto Elevation. It is done by a lot more than just task manager, but there is no way to make your program do it. To auto elevate the following requirements must be met.
<autoElevate>true</autoElevate>
must be in the assembly manifest.%SystemRoot%\System32
and most of its subdirectories, %SystemRoot%\Ehome
, as well as a handful of directories under %ProgramFiles%
that include Windows Defender and Windows Journal.You can do number 1 and 2 yourself, but there is no way you can fulfill requirement #3.