-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathWin11-RAMDisk-Admin-Fix.reg
More file actions
21 lines (19 loc) · 929 Bytes
/
Copy pathWin11-RAMDisk-Admin-Fix.reg
File metadata and controls
21 lines (19 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Windows Registry Editor Version 5.00
; A fix for the "Incorrect function" error when running .exe files from
; a RAM disk in Windows 11. This solution adds a context menu option to
; run executables with administrator privileges, bypassing the UAC issue.
;
; This method bypasses UAC checks for the selected .exe file, instead
; triggering UAC for the trusted system process cmd.exe. This behavior
; can be exploited by malware, allowing it to run without triggering the
; usual UAC warnings.
;
; Version: v3.0
; Credit:oood, tomasz1986
; Source: https://github.com/oood/Win11-RAMDisk-Admin-Fix/
; License: CC0
; January 15, 2025
[HKEY_CLASSES_ROOT\exefile\shell\RunAsAdminInRAMDisk]
"MUIVerb"="Run as administrator (RAM Disk &Fix)"
[HKEY_CLASSES_ROOT\exefile\shell\RunAsAdminInRAMDisk\command]
@="powershell -Command \"Start-Process cmd -ArgumentList '/c start \\\"\\\" \\\"%1\\\"'\" -Verb runAs\""