Jump to content

$objConnection.Open("Active Directory Provider")


gcue
 Share

Recommended Posts

It checks for errors and returns the error information as described in the function header.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

from a pc that has domain query access

@error:0

@extended:0

return value:1

from a pc thats part of a domain but network cable disconnected

COM Error Encountered in test.exe

Scriptline = -1

NumberHex 80070548

Number = -2147023541

WinDescription = The specified domain either does not exist or could not be contacted

Description =

Source =

Helpfile =

HelpContext =

LastDllError = 317

@error:4

@extended:-2147023541

return value:0

from an account that doesnt have domain query/modify access

@error:3

@extended:-2147352567

return value:0

looks promising!!!

again thanks for your help... sorry for the delay in response but counting on a user on a different time zone.

Link to comment
Share on other sites

Hi gcue,

the production version will handle all errors without showing the message box (in the _AD_ErrorHandler function).

So you get a return code from _AD_Open in your script. If the return code is <> 0 then you can exit because you can't connect to the AD.

I don't know how long it will take to release the next version. But if you like I can post both functions in advance.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

its ok i can wait till you're done =)

this is a huuge improvement.. adfunctions works well but this is definitely a step up bc of how you;ve organized it and error capturing def makes it closer to flawless =D

do you have an eta? psyhced about it!

thanks for the work you've put into this awesome UDF water

and props for Johny Clelland for starting it up...

Edited by gcue
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...