Launch Run Dialog with elevated permissions (Run As Administrator)


jonny

Member
Local time
1:33 PM
Posts
11
OS
windows 11
I like to ctrl+shift+enter to elevate my apps, this works with notepad (I can then create a new folder in a system folder like program files via the file dialog)

and cmd (the shell is labelled as elevated)
1705492712661.png

With powershell_ise, this doesn't work - you have to select the Run as administrator context menu (shift+right-click to extend if required)

💡If you run from windows sandbox everything is launched elevated
1705492774187.png

I tried to get this by creating a shortcut to C:\Windows\explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} and setting the shortcut to Run as admin
Advanced Shortcut Properties
1705492842883.png

This method doesn't work, the run isn't elevated, and processes launched from this are not elevated.

I can use /runas which may only allow me to run as the Administrator (not running as "me" with admin rights) and this also requires a password is set for the Administrator user...

1. How can powershell_ise be ran elevated?
I just created the shortcut to c:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe and set that to run as admin, and that worked, but ideally I'd be able to do this for any app, maybe without creating shortcuts.

2. How can the "elevated run dialog" be launched? Is there a policy? Can a shortcut be created in a special location to launch the admin_run_dialog, with an(other) global shortcut hotkey, eg "Ctrl+WindowsKey+R" ?

Thanks!


PS: I have UAC currently off, in case that's important.
1705493235790.png
 

My Computer

System One

  • OS
    windows 11
    Computer type
    Laptop
To open & use the Run dialog:-
Win-R
write in the command you want to run elevated
Ctrl-Shift-Enter

the Administrator
By the way, there is no such thing as the Administrator.
Any account in the Administrators group is equal to all the other accounts in the Administrators group.


Denis
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
I tried to get this by creating a shortcut to C:\Windows\explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} and setting the shortcut to Run as admin

I personally use the method indicated by Denis (ie. enter the program name and press CTRL + SHIFT + ENTER), although interestingly, there also the method of creating a Shortcut to the RUN box using the following target (set to run as admin in properties).
Code:
C:\Windows\System32\rundll32.exe shell32.dll,#61
ref: Where is the Windows Run command located?

Although, in the limited testing, on my System, if I run this shortcut, I get either a ready to go "This task will be created with administrator previleges", or a normal RUN box with a tickbox to "Create this task with administrative privileges". In the second instance, the program name entered in the dialog box will not run unless that "admin box is ticked" !.

runAs.PNGrunAs2.PNG

pn: Powershell_ise.exe for some reason can't seem to be started as admin using the normal RUN dialog Ctrl+Shift+Enter method, although it can be indirectly by using something like:
powershell.exe -c powershell_ise.exe
 
Last edited:

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700 (non-K)
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    On-board Intel iGPU
    Sound Card
    On-board Realtek
    Hard Drives
    Samsung_SSD_850_EVO
    PSU
    Corsair Rm850X
    Cooling
    All air
Thanks for contributions!

I'm running (windows + R) c:\Windows\System32\rundll32.exe shell32.dll,#61
but I don't get the admin-run box

Denix, when you use that method to run powershell_ise does that launch as admin on yours? Not working here (windows 11, 22h2)

there is no such thing as the Administrator.
Also, if you run net users you may have an Administrator account. It may be disabled as default, but it does often exist

Just saying ; )

net users

Administrator DefaultAccount Guest
Jonny WDAGUtilityAccount

Well done das10! That doesn't work on mine... if you expose the command line column in Task Manager does your run admin appear with the same command (C:\Windows\System32\rundll32.exe shell32.dll,#61) ?


Thanks again !👍

Update: if I ctrl+shift+enter to run the C:\Windows\System32\rundll32.exe shell32.dll,#61 I get the prompt, and changing the previous shortcut target to this causes the run to launch with admin rights). Sadly windows shortcuts can't be assigned shortcut keys that use windows-key, but preliminary results show success.

Solution (one) - run "C:\Windows\System32\rundll32.exe shell32.dll,#61" as admin

To make the shortcut global
I tried moving the shortcut to a folder in system32 (that's in path), but in testing (calling the admin-run via shortcut when something like Edge is focussed) this doesn't work... yet
 
Last edited:

My Computer

System One

  • OS
    windows 11
    Computer type
    Laptop
the Administrator
By the way, there is no such thing as the Administrator.
Any account in the Administrators group is equal to all the other accounts in the Administrators group.

The built-in Admin account is an Admin account.
It is on no sense the Admin account.
It is no more powerful than any Admin account that you create.


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
The built-in Admin account is an Admin account.
It is on no sense the Admin account.
It is no more powerful than any Admin account that you create.
The built-in Administrator by default is never asked for UAC approval. That's why some people love using it.

- To get the same behavior for other Admin group users, you must alter their UAC settings.
- To get the built-in Administrator to stop defaulting to having admin rights, you must alter their Admin Approval Mode.

So yes, built-in Administrator is more "powerful" this way, but doesn't have more rights than any other elevated Admin user.
 

My Computer

System One

  • OS
    Windows 7
The Built-in Admin defaults to UAC off whilst other Admin accounts default to UAC on.
Both the Built-in Admin & any other Admin accounts can have their UAC level changed.
None are more powerful than any other.

The OP should not be under any illusions in this respect.


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
UAC being enabled or disabled is a system-wide setting. There are not different on/off settings for different users.

The different behavior for the built-in Administrator account is due to Admin Approval Mode, as garlin said. By default, on client versions of Windows, Admin Approval Mode is disabled, meaning the built-in Administrator runs applications elevated without being prompted.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 [rev. 3447]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
jonny,

Nothing in these recent posts changes the key facts that:

the Administrator
... there is no such thing as the Administrator.
Any account in the Administrators group is equal to all the other accounts in the Administrators group.

The built-in Admin account is an Admin account.
It is on no sense the Admin account.
It is no more powerful than any Admin account that you create.


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
So yes, built-in Administrator is more "powerful" this way, but doesn't have more rights than any other elevated Admin user.
The main important difference is that the built-in Administrator account, or default local Administrator account cannot be deleted or locked out. Local Accounts - Windows Security
"the Administrator account" commonly refers to the other local Administrator account that is automatically created during Windows setup:
"Windows setup disables the built-in Administrator account and creates another local account that is a member of the Administrators group."
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF

Latest Support Threads

Back
Top Bottom