How to disable User Account Control messages for certain application (always say "no" to any prompts)

irelynx_40 0 Reputation points
2024-04-11T18:11:10.4666667+00:00

Greetings, respected Microsoft Q&A Community,

I would like to disable User Account Control (UAC) messages for certain application by always say "no" to any prompts that was emitted by specific application.

I am unable to find any information regarding this matter (except unacceptable suggestion to disable UAC completely on my system, that will be the same solution as always say "yes")

Here is the screenshot of the main reason why I need to always say "no" to any prompts:Image

I already tried the following solution proposed by Microsoft Community Support Specialist Rota (link to answers.microsoft.com):

Using Registry Editor (started with Administrator privileges), at HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers create new String Value named C:\ProgramData\...\program.exe, with value RUNASINVOKER (I also tried ~ RUNASINVOKER) after that I reboot the PC (just in case).

Unfortunately, suggested solution doesn't have much effect on the issue, prompts still popups.

Prompt's program location (as stated after clicking on "more details", with all quotes preserved) looks like this: "C:\ProgramData\...\program.exe" --install --session=1324564315 --port=12121

Affected operating systems: Window 10 Pro (10.0.19042)

Thanks in advance for your help, Cheers!

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,630 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,757 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 10,755 Reputation points MVP
    2024-04-11T19:07:34.6733333+00:00

    Use Application Compatibility Toolkit

    https://techcommunity.microsoft.com/t5/ask-the-performance-team/act-suppressing-elevation-prompts-for-legacy-applications/ba-p/374734


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,811 Reputation points Microsoft Vendor
    2024-04-15T04:41:44.6233333+00:00

    Hi irelynx_40,

    Thanks for your post. Based on my research, starting from Windows 10, please understand that there is few method to apply UAC selectively. If you go to Control Panel > User Accounts > Change User Account Control Settings, you'll see the available options are not for the specific apps.

    Also, I have done a lot of research and find a workaround to use the Task scheduler.

    In Task Scheduler, right-click "Task Scheduler Library" and select "New Folder" Name it whatever you would like.

    Select the new folder and click "Create Task" (not "Create Basic Task")

    Name the task something descriptive. Enable "Run with highest privileges," and select your OS under "Configure for."

    Under the Actions tab, select "Start a program" in the Action dropdown if it isn't already. Click Browse and find your app's .exe file (usually under Program Files on your C: drive).

    (Laptops) Under Conditions tab, deselect "Start the task only if the computer is on AC power."

    On your desktop, right click and select New > Shortcut. Paste 'C:\Windows\System32\schtasks.exe /RUN /TN "Name of folder\Name of task" into the text box.

    This will create a link to your program that will automatically skip the prompt asking for permission to make changes to your computer.

    The app's icon won't transfer over, but this can be easily fixed.

    Please note that this solution can be used to start programs from Startup folder, if UAC intercept them (non-system programs). Otherwise, UAC will block program (without prompt or any clue what happened) and it will never start.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.