Run As Admin is not working #103

Closed
opened 2023-02-15 15:50:15 +01:00 by mschmidt · 4 comments
Owner

A normal user cannot execute cmd.exe as Admin anymore!

Problem in the image?

---> check presets.

A normal user cannot execute cmd.exe as Admin anymore! Problem in the image? ---> check presets.
mschmidt self-assigned this 2023-02-15 16:28:59 +01:00
mschmidt added the
bug
label 2023-02-15 16:29:02 +01:00
Author
Owner

NOT a BUG!

Solution: Press "SHIFT" and right click on object (for e.g. cmd.exe) and the system will raise a password dialog (like in linux).

Or: Just use "runas /user:Administrator cmd.exe" on commandline. A prompt for the password will be raised.

NOT a BUG! Solution: Press "SHIFT" and right click on object (for e.g. cmd.exe) and the system will raise a password dialog (like in linux). Or: Just use "runas /user:Administrator cmd.exe" on commandline. A prompt for the password will be raised.
Author
Owner

The GUI should show "Run as different user" ALWAYS!

Registry patch needed!

The GUI should show "Run as different user" ALWAYS! Registry patch needed!
Author
Owner

Solution (Add_Run_as_different_user_context_menu.reg):

Windows Registry Editor Version 5.00

; Created by: Shawn Brink
; Created on: March 8, 2022
; Tutorial: https://www.elevenforum.com/t/add-or-remove-run-as-different-user-context-menu-in-windows-11.5080/


[HKEY_CLASSES_ROOT\batfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=-
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\batfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"


[HKEY_CLASSES_ROOT\cmdfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=-
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\cmdfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"


[HKEY_CLASSES_ROOT\exefile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=-
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\exefile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"


[HKEY_CLASSES_ROOT\mscfile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=-
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\mscfile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"


[HKEY_CLASSES_ROOT\Msi.Package\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=-
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"

[HKEY_CLASSES_ROOT\Msi.Package\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"
Solution (Add_Run_as_different_user_context_menu.reg): ``` Windows Registry Editor Version 5.00 ; Created by: Shawn Brink ; Created on: March 8, 2022 ; Tutorial: https://www.elevenforum.com/t/add-or-remove-run-as-different-user-context-menu-in-windows-11.5080/ [HKEY_CLASSES_ROOT\batfile\shell\runasuser] @="@shell32.dll,-50944" "Extended"=- "SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}" [HKEY_CLASSES_ROOT\batfile\shell\runasuser\command] "DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}" [HKEY_CLASSES_ROOT\cmdfile\shell\runasuser] @="@shell32.dll,-50944" "Extended"=- "SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}" [HKEY_CLASSES_ROOT\cmdfile\shell\runasuser\command] "DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}" [HKEY_CLASSES_ROOT\exefile\shell\runasuser] @="@shell32.dll,-50944" "Extended"=- "SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}" [HKEY_CLASSES_ROOT\exefile\shell\runasuser\command] "DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}" [HKEY_CLASSES_ROOT\mscfile\shell\runasuser] @="@shell32.dll,-50944" "Extended"=- "SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}" [HKEY_CLASSES_ROOT\mscfile\shell\runasuser\command] "DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}" [HKEY_CLASSES_ROOT\Msi.Package\shell\runasuser] @="@shell32.dll,-50944" "Extended"=- "SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}" [HKEY_CLASSES_ROOT\Msi.Package\shell\runasuser\command] "DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}" ```
Author
Owner

commit 42140bc09e (HEAD -> master, origin/master, origin/HEAD)
Author: Michael H.G. Schmidt michael@schmidt2.de
Date: Thu Feb 16 10:35:36 2023 +0100

commit 42140bc09eab99d28bfac71069cf9f0fcdceb6d4 (HEAD -> master, origin/master, origin/HEAD) Author: Michael H.G. Schmidt <michael@schmidt2.de> Date: Thu Feb 16 10:35:36 2023 +0100
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: WINDOWS/w10install#103
No description provided.