To round out the tutorial, we present a "registry" command
which works alongside regedit.exe to provide UAC-free access.
o Win+R + registry (to open the registry sans UAC prompts)
This new command points to an existing Windows command.
o Win+R + task (to open the task manager sans UAC prompts)
This new command points to an existing Windows applet.
o Win+R gateway (to kill/restart the gateway sans UAC prompts)
This new command points to a new batch command.
1. Test that the command you'll invoke already exists in Windows:
o Win+R > %windir%\regedit.exe
Note: This should bring up the registry editor (after UAC assent).
2. Test that the command you'll create doesn't currently exist:
o Win+R > registry
Note: It should error saying "Windows cannot find 'registry'.
3. Create a new shortcut that runs the desired command:
FILESPEC = c:\app\os\lnk\registry.lnk
TARGET = %windir%\regedit.exe
STARTIN = %windir% <== this doesn't seem to matter
4. Test your new (temporary) shortcut:
o Win+R > c:\app\os\lnk\registry.lnk
Note: This should bring up the registry editor (after UAC assent).
5. Create an AppPaths registry key value pair pointing to that command:
[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\]
registry.exe = c:\app\os\lnk\registry.lnk
6. Test your new command name:
o Win+R > registry
Note: This should bring up the registry editor (after UAC).
7. Create a new background task which runs without invoking UAC access:
Win+R > %windir%\system32\taskschd.msc /s
Rightclick on "Task Scheduler Library" > Create Task
[General] Name = UAC Regedit Task
[General] [x]Run with highest privileges
[Actions] > [New] > Start a program
[Actions] Program/script: %windir%\regedit.exe
[OK][OK] Registry:File > Exit
Note: If you prefer to also attain focus, then substitute this:
Win+R > %windir%\system32\taskschd.msc /s
Rightclick on "Task Scheduler Library" > Create Task
[General] Name = UAC Regedit Task
[General] [x]Run with highest privileges
[Actions] > [New] > Start a program
[Actions] Program/script: %comspec%
[Actions] Add arguments (optional) = /c start "" regedit.exe
[OK][OK] Registry:File > Exit
8. Modify the shortcut to run that task sans invoking UAC access assent:
FILESPEC = c:\app\os\lnk\registry.lnk
TARGET = C:\Windows\System32\schtasks.exe /run /TN "UAC Regedit Task"
STARTIN = %windir% <== I don't think this matters
9. Copy that shortcut to your taskbar cascade accordion menu:
copy c:\app\os\lnk\registry.lnk c:\menu\os\lnk\registry.lnk
10. Test
Win+R > registry
Taskbar > menu > os > lnk > registry
Note: In both tests, the registry should open sans UAC access assent.
Voila!
--
As always, please improve so all benefit from every post on Usenet.