Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6682277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:41:13+00:00 2026-05-26T04:41:13+00:00

Windows 7 uses an automatic mechanism to detect whether an application needs elevated administrator

  • 0

Windows 7 uses an automatic mechanism to detect whether an application needs elevated administrator privileges. Or the application itself has a manifest.

Is there a way to find out programmatically whether a specified application needs elevated administrator privileges or not?
I don’t want to start it to find it out.

Thank you ;).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:41:13+00:00Added an answer on May 26, 2026 at 4:41 am

    There’s really just one way to tell Windows that a program needs to be elevated and that’s through the manifest file. Manifest files can either be embedded within an assembly (exe/dll) or can live in a separate file named <YOUR_APP>.exe.manifest. That’s really the only way and probably the only way that you can safely check. Officially.

    Windows also contains a giant database that’s used for application compatibility. If Microsoft has tested an app and found that it breaks when an OS upgrade happens they sometimes creates an entry in the database to essentially hack the app. Sometimes they lie about the current OS version, sometimes they automatically run as administrator, sometimes they do a bunch of other things. You can view the database using the Application Compatibility Toolkit. I don’t know if there’s an official way to query the database via code. This blog post talks about a tool that the blogger made but apparently never release.

    The last automatic elevation mechanism is algorithm that tries to determine if that app is an installer. According to MSDN these attributes are checked:

    • Filename includes keywords like “install,” “setup,” “update,” etc.
    • Keywords in the following Versioning Resource fields: Vendor, Company Name, Product Name, File Description, Original Filename,
      Internal Name, and Export Name.
    • Keywords in the side-by-side manifest embedded in the executable.
    • Keywords in specific StringTable entries linked in the executable.
    • Key attributes in the RC data linked in the executable.
    • Targeted sequences of bytes within the executable.

    The keywords and sequences of bytes were derived from common
    characteristics observed from various installer technologies.

    Lastly, an app can run as a normal user but spawn a child process that requires elevated privileges. I don’t know if there’s really any way to actually detect that short of decompiling the app itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows Workflow application that uses classes I've written for COM automation.
I'm writing an ASP.net application that uses Windows Identity Foundation. My ASP.net application uses
My application uses multiple windows I want to hide one specific window in case
I have a Windows application that uses a .NET PropertyGrid control. Is it possible
I have installed my windows application that uses TeeChart ActiveX (a COM Component for
I'm rewriting a script that uses COM to automate a windows application, and I'd
I am trying to automate a windows based application, which uses several Infragistics controls.
SQLCMD uses windows authentication by default. According to the MSDN documentation , you can
Suppose some Windows service uses code that wants mapped network drives and no UNC
I am writing a command-line tool for Windows that uses libcurl to download files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.