water Posted January 10, 2012 Share Posted January 10, 2012 Looks quite old (10-May-2007). Can you install the latest version 3.3.8.0 of Autoit and the latest SciTE editor as well?Download AutoIt Full Installation and AutoIt Script Editor. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
mik3 Posted January 10, 2012 Author Share Posted January 10, 2012 That did it! Thanks Link to comment Share on other sites More sharing options...
water Posted January 10, 2012 Share Posted January 10, 2012 Glad the problem is solved! Otherwise I would have run out of ideas. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
mik3 Posted January 10, 2012 Author Share Posted January 10, 2012 In the last tab, I just have to type the name of the computer account I create in the previous tab right? Which should be the current computer name? Link to comment Share on other sites More sharing options...
mik3 Posted January 10, 2012 Author Share Posted January 10, 2012 Instead of typing the computername in the last tab, could the script pull the current computername? Link to comment Share on other sites More sharing options...
water Posted January 10, 2012 Share Posted January 10, 2012 Right. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted January 10, 2012 Share Posted January 10, 2012 (edited) Sure. Change line 90 fromGlobal $hT2_ComputerName = GUICtrlCreateInput("", 208, 72, 209, 21)toGlobal $hT2_ComputerName = GUICtrlCreateInput(@ComputerName, 208, 72, 209, 21)Edit: And line 67 too Edited January 10, 2012 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
mik3 Posted January 10, 2012 Author Share Posted January 10, 2012 90 is 88 on mine. Also 67 is 65. On line 65 do I copy the same one is $hT2 and the other $hT1? Link to comment Share on other sites More sharing options...
water Posted January 10, 2012 Share Posted January 10, 2012 Sorry, I've already updated my version of the script.I've uploaded a new version to this Please download - the computername is pre-set on tab1 and tab2. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
mik3 Posted January 10, 2012 Author Share Posted January 10, 2012 Beautiful! Thanks so much. I have read that koda allows one to create the GUI easier. Do you know of a good tutorial out there? Link to comment Share on other sites More sharing options...
water Posted January 10, 2012 Share Posted January 10, 2012 This is the for Koda. It has a link to the Koda wiki and there you find all you need to know about Koda. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
mik3 Posted January 11, 2012 Author Share Posted January 11, 2012 I am getting errors creating computer accounts. However, when I try it a few times and even though errors appear, the computer account gets created. I do not have the error message with me now. I will post it tomorrow. I did not try joining, but will tomorrow. It would be nice to be able to search for a computer account to verify it was created. Link to comment Share on other sites More sharing options...
water Posted January 11, 2012 Share Posted January 11, 2012 The errors are caused by missing permissions. Every user is allowed to create up to 10 computer accounts. The AD function then sets some necessary permissions for this new account which needs some extra user permissions which an ordinary user doesn't have. I will implement a computer search function. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted January 11, 2012 Share Posted January 11, 2012 (edited) I've uploaded a new version to this Every Input field for username or computername now has a button to its right which displays a (filtered) list of users/computers. Edited January 11, 2012 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
mik3 Posted January 11, 2012 Author Share Posted January 11, 2012 The errors are caused by missing permissions. Every user is allowed to create up to 10 computer accounts. The AD function then sets some necessary permissions for this new account which needs some extra user permissions which an ordinary user doesn't have.I will implement a computer search function.Right. The way this tool will be used is on computers that have just been cloned. Since it is not joined and logged in as the local admin, the tool can not create computer accounts. The most important things are to join computer and be able to choose what OU it gets put in. Also computer description is important so that we may link computer to user. The creation of the computer account is not that important if I can do these things. Link to comment Share on other sites More sharing options...
water Posted January 11, 2012 Share Posted January 11, 2012 Even from a computer which is not a member of the domain yet you can run the script and create a computer. On the "General" tab enter userid and password of a domain user with the proper permissions (plus the remaining domain relevant fields) to create a computer and set the permissions in AD. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
mik3 Posted January 11, 2012 Author Share Posted January 11, 2012 I hope I am not becoming a pain, but it would be cool if in the serach feature there is a column for the location of the object. Thanks for all your help!!! Link to comment Share on other sites More sharing options...
mik3 Posted January 11, 2012 Author Share Posted January 11, 2012 Even from a computer which is not a member of the domain yet you can run the script and create a computer.On the "General" tab enter userid and password of a domain user with the proper permissions (plus the remaining domain relevant fields) to create a computer and set the permissions in AD.I did that, but maybe I did something wrong. I will try again. Link to comment Share on other sites More sharing options...
water Posted January 11, 2012 Share Posted January 11, 2012 Replace the function List_Computer with this code. ; #FUNCTION# ==================================================================================================================== ; Name...........: List_Computer ; Description ...: Create a list of computer accounts ; =============================================================================================================================== Func List_Computer() Local $sComputer = InputBox($sTitle, "Computer account(s) to search for." & @CRLF & "Wildcards are allowed.", "*", "", 300, 150, Default, Default, Default, $hGUI) If @error = 1 Then Return If _AD_Open() Then If StringInStr($sComputer, "*") = 0 Then $sComputer &= "*" Local $aComputer = _AD_GetObjectsInOU("", "(&(objectcategory=computer)(Samaccountname=" & $sComputer & "))", 2, "cn, description,location") If @error = 3 Then MsgBox(16, $sTitle, "No computer accounts found using the specified search pattern!") Else _ArrayDisplay($aComputer, "List of computer accounts", -1, 0, "", "|", "|Name|Description|Location") EndIf _AD_Close() EndIf Return 1 EndFunc ;==>List_Computer My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted January 11, 2012 Share Posted January 11, 2012 The "General" tab should look like: <domain><userid> <password> DC=microsoft,DC=com <servername>.microsoft.com CN=Configuration,DC=microsoft,DC=com<servername>.microsoft.com is optional. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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