I have small tool developed in ms access 2010.
This tool i run using admin command prompt , so i drag and drop accd file to admin command prompt.
Through this tool, i am launching some tools which requires admin rights. and it was working ok in XP, but not in win7, so i have converted mdb file to 2010 and change some code, so now when it launch app and if it needs admin rights it prompts for user / password, so i supply admin user/password, it works ok.
is there anyway i can pass admin user/password in code , that way UAC will not keep prompting to enter user/password again and again, whenever it launch app.
run app as admin programmatically
Page 1 of 14 Replies - 557 Views - Last Post: 02 February 2012 - 10:51 AM
Topic Sponsor:
Replies To: run app as admin programmatically
#2
Re: run app as admin programmatically
Posted 02 February 2012 - 09:20 AM
Can't you just set the properties of the app to always run as administrator (Right click - Properties/Compatibility/Privilege Level)?
#3
Re: run app as admin programmatically
Posted 02 February 2012 - 09:24 AM
I would agree with maj3 - the UAC's there for a reason - trying to circumvent it seems unnecessary with the 'always run as admin' option.
#4
Re: run app as admin programmatically
Posted 02 February 2012 - 09:30 AM
maj3091, on 02 February 2012 - 09:20 AM, said:
Can't you just set the properties of the app to always run as administrator (Right click - Properties/Compatibility/Privilege Level)?
I did, and that's why it now prompts for user/password, whenever it launch the app.
for example, i want to launch MMC.exe, or access remote computer by \\pc\C$, it keeps prompting password each time. I thought if i can store user/password (encrypted) in database and when i want to launch mmc.exe for example i will password that admin user/password. That way it will work just like in XP.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|