Run Dialog Box

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
tuvix
Posts: 2
Joined: 08 Jun 2022 00:16

Run Dialog Box

#1 Post by tuvix » 08 Jun 2022 13:55

Hey guys, I am trying to get the Windows Run Dialog Box to always run as administrator so I will not have to keep pushing CTRL+SHIFT+ENTER to run the command as admin. How would I do that? I am new to this so any help would be greatly appreciated.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Run Dialog Box

#2 Post by aGerman » 08 Jun 2022 14:15

I'm pretty sure you can't adjust this behavior using Batch. I'm even quite certain that you can't change this behavior at all (at least I'm not aware of such a possibility).

Steffen

atfon
Posts: 178
Joined: 06 Oct 2017 07:33

Re: Run Dialog Box

#3 Post by atfon » 09 Jun 2022 06:11

This is untested from a non-Admin account, but you could try this:

1. Create a Shortcut to the Run dialog. For the location, use the following: explorer shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}
2. From the Properties of this Shortcut, go to Advanced and select Run as Administrator.

Post Reply