cad29 0 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 Share this post Link to post Share on other sites
PsaltyDS 39 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 Share this post Link to post Share on other sites
Kalin 0 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. Share this post Link to post Share on other sites
Varian 8 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. Share this post Link to post Share on other sites
cad29 0 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. Share this post Link to post Share on other sites
Varian 8 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) Share this post Link to post Share on other sites
cad29 0 Posted January 11, 2011 Thanks a lot Varian Share this post Link to post Share on other sites