Forcing UAC in Vista

presidentender

Golden Member
Jan 23, 2008
1,166
0
76
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?
 

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
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?
 

Venix

Golden Member
Aug 22, 2002
1,084
3
81
The simplest solution for your situation is to put <requestedExecutionLevel level="requireAdministrator" /> in the application's manifest.
 

hans007

Lifer
Feb 1, 2000
20,212
18
81
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.