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.
11,982 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.
5,729 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Marcin Policht 32,185 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. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

  3. Manuel 0 Reputation points
    2024-06-24T12:21:20.97+00:00

    Simple way:

    cmd.exe /c "set __COMPAT_LAYER=RunAsInvoker && regedit.exe"

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.