cad29 Posted January 10, 2011 Share Posted January 10, 2011 Hi Im new in autoIT v3 does anyone have a script or idea how to make a script to provide local admin rights to the PC?Thanks Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 10, 2011 Share Posted January 10, 2011 Provide to whom? And based on what authentication? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Kalin Posted January 10, 2011 Share Posted January 10, 2011 Provide to whom? And based on what authentication?He means provide the AutoIt software to users in a different class than Administrator. Which I doubt know he's not going to get any help with this from anyone here. Link to comment Share on other sites More sharing options...
Varian Posted January 10, 2011 Share Posted January 10, 2011 If you are using XP you can Google "MakeMeAdmin.cmd", which is a command line batch file which you can use to use to open an Administrator enabled command prompt. This relies that you know the username and password of an Admin account on the local machine. If you are trying to somehow go around the security and hack into an Admin account, there are several paid apps which can do that, but nothing here. Link to comment Share on other sites More sharing options...
cad29 Posted January 11, 2011 Author Share Posted January 11, 2011 Thanks for the reply guys.Im admin and I usually provide admin rights to the user manually by going to lusrmgr.msc and then add their username in the administrator group but I want to do this one automatic if it is possible thanks. Link to comment Share on other sites More sharing options...
Varian Posted January 11, 2011 Share Posted January 11, 2011 Thanks for the reply guys.Im admin and I usually provide admin rights to the user manually by going to lusrmgr.msc and then add their username in the administrator group but I want to do this one automatic if it is possible thanks. Change the variables to the appropriate valuesLocal $AdminAccount = 'YourAdmintratorAccount' Local $Domain = 'YourDomain' Local $Password = 'YourPassword' Local $UserToAdd = 'Domain\Username' RunAs($AdminAccount, $Domain, $Password, 2, 'net LocalGroup Administrators /add "' & $UserToAdd & '"', '', @SW_HIDE) Link to comment Share on other sites More sharing options...
cad29 Posted January 11, 2011 Author Share Posted January 11, 2011 Thanks a lot Varian 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