Windows 11 desktop shortcut run as Admin

Jake Sokol 101 Reputation points
2025-03-12T14:45:21.02+00:00
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,055 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. MotoX80 35,606 Reputation points
    2025-03-13T00:39:03.0466667+00:00

    I'm not sure if this is what you're trying to do, but I'll share what I found when trying to help another user. I found that in order to launch a program as an admin account and run it elevated, I had to first launch a program as the user and then launch the elevated program.

    See my RunasAdmin.ps1 script in this link. Feel free to modify it to suit your needs. It stores the user credentials in the registry in base 64 encoding. So it's not in plain text, but a really technical user could figure it out. It all depends on your security requirements.

    https://learn.microsoft.com/en-us/answers/questions/1656753/am-i-invoking-psexec-wrong-or-is-it-not-working-pr

    If your account is an admin and you just want to elevate a process, use the advanced button and select run as administrator.

    User's image

    0 comments No comments

Your answer

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