Chris86 Posted October 9, 2009 Share Posted October 9, 2009 (edited) Hi, Is there any other way go let me decide when my script need admin rights? cuz I don't want users to give admin rights to my script each time they run it.. Edited October 9, 2009 by Chris86 Link to comment Share on other sites More sharing options...
Developers Jos Posted October 9, 2009 Developers Share Posted October 9, 2009 Hi, Is there any other way go let me decide when my script need admin rights? cuz I don't want users to give admin rights to my script each time they run it..#Requireadmin can be put anywhere in the script, the effect will be the same.RunAs() is an alternative to perform certain tasks using other credentials.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Chris86 Posted October 9, 2009 Author Share Posted October 9, 2009 Thanks Jos Someone told me that if I don't put #Requireadmin in the beginning of the script then everything would fail Link to comment Share on other sites More sharing options...
Inverted Posted October 9, 2009 Share Posted October 9, 2009 Wherever you put it, it's the same. The script will require admin privileges each time. So it doesn't really solve your problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now