0

My query is basically to bypass the "Admin Command Prompt" UAC.

What i am trying to do is to open a "Admin Command Prompt" but every time when i open it pop up UAC, which i want to ignore, i want when i run the "Admin Command Prompt" it will automatically open as Admin without any UAC Pop-up

Is there any way i can do that?

I am thinking to create a batch file which runs and open cmd.exe and pass the UAC pop-up, but i am not sure how to create the same

Tag: "Admin Command Prompt" : It is basically when we right click on cmd.exe and use "Run As Administrator"

Rishabh Bhargav
  • 35
  • 1
  • 11
  • 3
    Possible duplicate of [How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?](https://stackoverflow.com/questions/7044985/how-can-i-auto-elevate-my-batch-file-so-that-it-requests-from-uac-administrator) – Squashman Jun 06 '18 at 16:43
  • Or this one: https://superuser.com/a/1310459/774709 – Squashman Jun 06 '18 at 16:46
  • If it were possible, all malware would do it. Read this first: [FAQ: Why can't I bypass the UAC prompt?](https://blogs.msdn.microsoft.com/windowsvistasecurity/2007/08/09/faq-why-cant-i-bypass-the-uac-prompt/) – Bill_Stewart Jul 23 '18 at 21:14
  • UAC **CAN** be bypassed if you are already an **ADMIN**. See [UAC Getting in the Way of EXE Install Powershell](https://stackoverflow.com/a/60292423/12861751) – ScriptKidd Feb 22 '20 at 02:15
  • Which isn't bypassing UAC; it's just addressing it earlier - before you open `cmd`. – Slbox Nov 27 '21 at 22:02

1 Answers1

1

You can't bypass. If the user is a standard user, you have no way to arbitrarily decide to just become an administrator.

Windows is a secure operating system, and has the notion of standard users and administrators. The fact that you're a standard user is your own choice.

You're perfectly free to ask the computer administrator to make you an administrator - but it's a really, really, terrible idea.

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219