Need batch file code to run the application with admin credentials..
Dear All, I have a application designed in VB and SQL as backend. The application is installed in windows 7 client. The application is working fine with administrative account. but when the user has logged in and tried to open the application, it ask for the admin password. i have enable "run as administrator" checkbox in the properties. and given full control in security tab.. is there any process to avoid this... please let me know??? one of my friend told to create a batch file which include the path of the application and administrator credentials which can solve my problem. but i don't know how to do... Please provide me the syntax and an example in detail... Regards, Mohammed irshad.
September 13th, 2012 5:48am

this can't be done in windows 7. There is no runas command anymore in windows 7 as there was in xp so you can't have it run as admin through a batch file. we ran into this same problem with a program we have here. What we ended up having to do was create a throwaway admin account on the computer and let the user know the password to it so to run as admin he could use this account. Not ideal and not happy how windows deals with this now.
Free Windows Admin Tool Kit Click here and download it now
September 13th, 2012 11:18am

Hi, If you have any question about code or program, please post your questions to Windows Script forum or MSDN forum. Thank for your understanding.Spencer TechNet Community Support
September 14th, 2012 5:46am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics