• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Forcing UAC in Vista

presidentender

Golden Member
We're trying to develop a tool to make sure that the users connecting to the campus network have secure machines (antivirus, fully updated OS, no router) before we let them out on the internet. A coworker of mine has written a tool in C# which works marvelously and interacts with the database as expected. However, as the last step of the process, we need them to get a new IP lease. In Vista, this is an admin only task. Assuming the user is stupid and does not follow directions, this means we need the application to do a UAC prompt and run as admin on the first try. We've been looking at this and can't figure it out.

Please, how do we make Vista prompt for UAC?
 
Originally posted by: presidentender
We're trying to develop a tool to make sure that the users connecting to the campus network have secure machines (antivirus, fully updated OS, no router) before we let them out on the internet. A coworker of mine has written a tool in C# which works marvelously and interacts with the database as expected. However, as the last step of the process, we need them to get a new IP lease. In Vista, this is an admin only task. Assuming the user is stupid and does not follow directions, this means we need the application to do a UAC prompt and run as admin on the first try. We've been looking at this and can't figure it out.

Please, how do we make Vista prompt for UAC?

it will prompt on its own if its enabled?
 
The simplest solution for your situation is to put <requestedExecutionLevel level="requireAdministrator" /> in the application's manifest.
 
Originally posted by: TechBoyJK
Originally posted by: presidentender
We're trying to develop a tool to make sure that the users connecting to the campus network have secure machines (antivirus, fully updated OS, no router) before we let them out on the internet. A coworker of mine has written a tool in C# which works marvelously and interacts with the database as expected. However, as the last step of the process, we need them to get a new IP lease. In Vista, this is an admin only task. Assuming the user is stupid and does not follow directions, this means we need the application to do a UAC prompt and run as admin on the first try. We've been looking at this and can't figure it out.

Please, how do we make Vista prompt for UAC?

it will prompt on its own if its enabled?

yeah i thought it would priviledge escalate if it got to something that required it.

 
Back
Top