Jump to content

Recommended Posts

Posted

In post #419 you call _AD_Open but you do not check for errors. Can you please check that _AD_Open was called successfully? Means that @error = 0 after calling.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

I mean: Insert line

MsgBox(0, "Error?", @error)

after _AD_Open.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

This means: $sHostServerParam and $sConfigurationParam are required when $sDNSDomainParam is specified

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

Run this script on a computer already connected to the Domain:

#include <AD.au3>
_AD_Open()
If @error Then Exit MsgBox(16, "Active Directory Example Skript", "Function _AD_Open encountered a problem. @error = " & @error & ", @extended = " & @extended)
ConsoleWrite("$sHostServerParam: " & $sAD_HostServer)
ConsoleWrite("$sConfigurationParam: " & $sAD_Configuration)
_AD_Close()

 

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

I got it!

 

ok so now I have the $sDNSDomainParam, $sHostServerParam and $sConfigurationParam in my AD Open

 

However I still get a 0 in the message box - hhmm

Posted
  On 5/5/2016 at 5:56 PM, OrangeCoder said:

ConsoleWrite("$sDNSDomainParam: " & $sAD_DNSDomain)

Expand  

 

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

No, you should get 0. Because the MsgBox displays the value of macro @error (which is the error code) and 0 means: No error.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

But it seems that the join was successful.
You could run _AD_UnjoinDomain and then try _AD_JoinDomain again.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Yes, why not?

My UDFs and Tutorials:

  Reveal hidden contents

 

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
×
×
  • Create New...