Playnite Forums
How to skip UAC prompts - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Extension Database (https://playnite.link/forum/forum-3.html)
+--- Forum: Generic Extensions (https://playnite.link/forum/forum-6.html)
+--- Thread: How to skip UAC prompts (/thread-954.html)



How to skip UAC prompts - Gildum - 11-11-2021

Here is a tip on how to skip the Windows UAC (User Account Control) prompt for programs/scripts that require admin rights.

This way you don't have to manually confirm the UAC prompt each time you start a game affected by that. It's especially useful for fullscreen mode when playing with a controller to make the playnite experience seemless.

[Image: uacconsentprompt.gif]

example of tools that require UAC confirmation
RTSS
MSI Afterburner
D3DOverrider
certain scripts/batch files (I use one to toggle desktop composition / Aero)

The solution is to create a new task in windows' Task Scheduler with elevated rights that will launch the specific program or script instead and thus skipping the UAC prompt (basically starting them indirectly).


Tutorial
This site has an easy to follow guide via a slideshow. It's in german but the images should be enough to understand the steps (use google translate if necessary): https://www.computerbild.de/fotos/So-schalten-Sie-die-Benutzerkonten-Steuerung-fuer-ausgewaehlte-Programme-aus-8754489.html#1

You only need to follow step 1 to 11, then simply use this powershell script in playnite to launch the specific script/program without a UAC prompt:

schtasks.exe /RUN /TN "TASKNAME"

You need to replace TASKNAME with the title of the task you just created in the task scheduler.