Tjalve Posted February 21, 2013 Share Posted February 21, 2013 Yes. if i run the program normaly (with my account) it works. If right-klick an choose "runas" and then i choose another account that isnt domainadmin, i get the error. Same error down in the reception when they try to run the program from thair accounts Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 If you try RunAs on the reception PC and enter your userid/password does it work? 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...
Tjalve Posted February 21, 2013 Share Posted February 21, 2013 Il check. One sec Link to comment Share on other sites More sharing options...
Tjalve Posted February 21, 2013 Share Posted February 21, 2013 If i go down to the reception and run the program i get the error above. If I then choose runas and run the program with my account (who have never logged on that computer), it works. Link to comment Share on other sites More sharing options...
ainner Posted February 21, 2013 Share Posted February 21, 2013 Hi! I tried downloading the last .Zip version pour your UDF and winzip can't open it O_o I tried on more than 1 computer and I can't open the archive Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 I don't think there is a problem with the ZIP archive. The latest version has about 2400 downloads without problems. What's the size of the downloaded file on your disk? Did you have problems with downloads before? Which error message do you get? 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 February 21, 2013 Author Share Posted February 21, 2013 Tjalve, can you add "_AD_ErrorNotify(2)" before you call _AD_Open in your script? We should get more detailed error information in a MsgBox. 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...
Tjalve Posted February 21, 2013 Share Posted February 21, 2013 (edited) Here you go. Edited February 21, 2013 by Tjalve Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 Could it be a kind of permission problem? 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...
ainner Posted February 21, 2013 Share Posted February 21, 2013 What's the size of the downloaded file on your disk : 264kDid you have problems with downloads before? : Never and I can open other .zip files. Which error message do you get? :http://www.google.ca/imgres?um=1&hl=fr&sa=N&biw=1680&bih=863&tbm=isch&tbnid=XL5Kd5Vp6ZprOM:&imgrefurl=http://www.roborealm.com/forum/index.php%3Fthread_id%3D1339&docid=4Z7DzY7BguIvcM&imgurl=http://www.roborealm.com/uploads/1339_1.JPG&w=813&h=612&ei=iB0mUZaBHdSw0QHmk4DQCQ&zoom=1&iact=rc&dur=125&sig=114924816759964252781&page=1&tbnh=142&tbnw=189&start=0&ndsp=51&ved=1t:429,i:85&tx=86&ty=90 Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 (edited) Looks like a partial download. The file should have 275.81KThe properties of the file say: Size: 282.425 BytesSize on Disk: 282.624 Bytes Edited February 21, 2013 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...
Tjalve Posted February 21, 2013 Share Posted February 21, 2013 Could it be a kind of permission problem?I guess i could, but as i said befior. Theese are just normal AD user accounts. And they must be able to connect to the AD just as any other account?And it works in another script. Link to comment Share on other sites More sharing options...
ainner Posted February 21, 2013 Share Posted February 21, 2013 thx for the infos! I tried downloading it with firefox and it worked! IE didn't!... Strange... Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 IIRC a user of the forum once had similar problems. After restarting the DC the problem was gone. Every script has to start with _AD_Open. So every script should work or return an error. The working script was compiled with the same version of the UDF? 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...
Tjalve Posted February 21, 2013 Share Posted February 21, 2013 IIRC a user of the forum once had similar problems. After restarting the DC the problem was gone.Every script has to start with _AD_Open. So every script should work or return an error.The working script was compiled with the same version of the UDF?No the other script was compiled with the version of the UDF that i used befor i updated to the newest version (witch i did today). Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 Could you compile this script with the latest UDF version and check if it still works (but keep the running version aside). So we know if the problem is caused by the UDF. 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...
Tjalve Posted February 21, 2013 Share Posted February 21, 2013 I created this simple script. And it works. #include #include _AD_ErrorNotify(2) $AD = _AD_Open() if $AD = 0 then MsgBox(0,"AD Connection ERROR","Kunde ej ansluta till AD, Felkod: " & @error & @CRLF & "@extended: " & @extended) msgbox(0,"ERROR","Öppnar AD: FAIL @error = " & @error & ", @extended = " & @extended) $array32 = _AD_GetLastADSIError() _arraydisplay($array32) Else msgbox(0,"OK","AD Koppling: OK") EndIf _ad_close() Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 So the problem is bound to this single script? Do you call _AD_Open multiple times? Do you use other UDFs in this script too (IE.au3, OutlookEX.au3 ...)? Do you use your own COM error handler in this script? 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...
Tjalve Posted February 21, 2013 Share Posted February 21, 2013 (edited) Yes. This is the begining of the script. #include <ad.au3> #include <ButtonConstants.au3> #include <DateTimeConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <array.au3> #Include <OutlookEX.au3> #include <String.au3> global $selecteduser = "" global $selectedinfo = "" global $loggedinuser = "" global $version = "0.12.11" ;~ Preboot SplashImageOn("Loadning...", @ScriptDir & "\splash.jpg", 300, 153,(@DesktopWidth/2)-150,(@DesktopHeight/2)-75,1) _AD_ErrorNotify(2) $AD = _AD_Open() if $AD = 0 then MsgBox(0,"AD Connection ERROR","Kunde ej ansluta till AD, Felkod: " & @error & @CRLF & "@extended: " & @extended) Exit EndIf Edited February 21, 2013 by Tjalve Link to comment Share on other sites More sharing options...
water Posted February 21, 2013 Author Share Posted February 21, 2013 Oopps. The editor ate the include statements. 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