water Posted January 29, 2013 Author Posted January 29, 2013 By "return codes" you mean the value returned by a function (which one?) or the meaning of the codes returned by @error and @extended? 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
water Posted January 29, 2013 Author Posted January 29, 2013 BTW: Could you please post questions on the " This thread has 47 pages, whereas the support thread was restarted some weeks ago and hence doesn't put such a heavy load on Jon's server. 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
iis4313 Posted February 13, 2013 Posted February 13, 2013 (edited) How to use these scripts i am new to this forum i see scripts as .au3 extension could you please help in this, i have to lot of stuff in my AD nmigration activity .need your help plz Edited February 13, 2013 by iis4313
water Posted February 13, 2013 Author Posted February 13, 2013 Welcome to AutoIt and the forum!I moved your question to the 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
Palmerj Posted February 25, 2013 Posted February 25, 2013 I have converted and extended the adfunctions.au3 written by Jonathan Clelland to a full AutoIt UDF including help file, examples, ScITE integration etc.The example scripts should run fine without changes.2012-10-12: Version: 1.3.0.0As always: Please test before using in production!KNOWN BUGS: (Last changed: 2012-12-19)If you run AutoIt < 3.3.9.2 and your script defines a COM error handler before _AD_Open is called then _AD_Open will fail with @error = 3.Thanks to user bartekd for pointing me to this error. A workaround is available.If you try to delete an object with characters that need to be escaped in the CN then function _AD_DeleteObject will crash.Thanks to user bartekd for pointing me to this error. A workaround is available.General:This version should (again) run with all production and beta versions of AutoIt. It combines 1.2.0 and 1.2.2.0.The COM error handler is activated automatically when the AutoIt version is < 3.3.9.2 I am having trouble unzipping, getting "invalid zip". I'm using Winzip 16.5.
water Posted February 25, 2013 Author Posted February 25, 2013 We had similar problems a few times. Whne people used another browser they could successfully download and extract the file. Make sure the downloaded file has the size as shown on page 1 (means: make sure the downloaded file is complete). 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
jazzyjeff Posted March 12, 2013 Posted March 12, 2013 Does the error -2147352567 have a particular meaning? I get this when I use the function _AD_SetPassword?Here is what the console returns.========================================================COM Error Encountered in Check Password Complexity.au3AD UDF version = 1.3.0@AutoItVersion = 3.3.8.1@AutoItX64 = 0@Compiled = 0@OSArch = X64@OSVersion = WIN_7Scriptline = 2186NumberHex = 80020009Number = -2147352567WinDescription = The server is unwilling to process the request.Description =Source =HelpFile =HelpContext = 0LastDllError = 0========================================================I am using the FQDN for the username.
water Posted March 13, 2013 Author Posted March 13, 2013 NumberHex = 80020009: An error has occurred. That's the error number AD throws most of the time (= doesn't mean anything) The WinDescription = The server is unwilling to process the request can have multiple reasons. One of them is: The password you try to set doesn't meet the password policy (length, reuse of passwords etc.) 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
jazzyjeff Posted March 13, 2013 Posted March 13, 2013 I was reading a password variable wrong and it thought my password was 4! Thanks for the help.
water Posted March 13, 2013 Author Posted March 13, 2013 Glad the problem could be solved 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
pm00115905 Posted April 9, 2013 Posted April 9, 2013 I have a complicated issue.The compnay I work for has a thrid party build a program for us. They failed to look at all the variables and now I'm stuck in the middle of fix it.We are a branch of a larger company so we do not have control over which groups users are placed in. However, if we connect to the network and then go to Control Panel >> User Accounts >> "Give other users access to this computer", we can add a user from the domain to the laptop and give the account Admin Rights for that computer alone.The problem I run into is when I use WinNT to try and determine what group the user is in, I have to pass the domain which WinNT goes to and sees the user is just a basic user. It does not see that the user is in the administrators group on that machine. Passing the Local Domain (computer name) results in an error.How can I find if a domain account is in a local group of the computer? If possible, please email me at paul.moura@sgs.com
water Posted April 9, 2013 Author Posted April 9, 2013 Unfortunately I'm not familiar with all the local stuff. Did you use Google to find a Visual Basic script that does what you need? VBS is easy to translate to AutoIt! 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
water Posted April 9, 2013 Author Posted April 9, 2013 Something like this. 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
dkwokgs Posted May 22, 2013 Posted May 22, 2013 Hi There, I trying to add department attribute using" _AD_ModifyAttribute" but is returning error -2147352567. No issue with "_AD_GetObjectAttribute " to query the username. Please advise. Thanks.
water Posted May 22, 2013 Author Posted May 22, 2013 Can you please add "_AD_ErrorNotify(2)" so we get extended error information. Plus post the complete statement. 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
dkwokgs Posted May 22, 2013 Posted May 22, 2013 Can you please add "_AD_ErrorNotify(2)" so we get extended error information. Plus post the complete statement. Thanks Water. Here you go. OK COM Error Encountered in modified_sample.au3 AD UDF version = 1.3.0 @AutoItVersion = 3.3.8.1 @AutoItX64 = 1 @Compiled = 0 @OSArch = X64 @OSVersion = WIN_7 Scriptline = 2479 NumberHex = 80020009 Number = -2147352567 WinDescription = Access is denied. Description = Access is denied. Source = Active Directory HelpFile = HelpContext = 0 LastDllError = 0
water Posted May 22, 2013 Author Posted May 22, 2013 Looks like you only have read access for this object. 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
water Posted May 31, 2013 Author Posted May 31, 2013 More than 4000 downloads of the AD UDF! I would never have expected that the UDF would be useful for so many users! Thanks to all who helped to make the UDF getting better all the time by pointing me to bugs and requesting enhancements! 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
water Posted June 15, 2013 Author Posted June 15, 2013 What do you think? Function _IsMemberOf only returns 1 if the object (user, group, computer) is an immediate member of the group. Do you want to see a new function (or a flag for this function) to get an recursive search (means: Search the specified group plus all groups in this group plus ...)? 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
supersonic Posted June 17, 2013 Posted June 17, 2013 Hello water, very good to see that your AD UDF is still developing... - can't wait to see it (and your other UDFs) being part of AutoIt package! I would like to see _IsMemberOf extended with a new flag to get a recursive search (on success returns an array, on failure returns 0). Greets, -supersonic.
Recommended Posts