Before trying to query the AD server I would like to check if it is alive and kicking. Looks like a trivial thing, but I haven´t found anything to elucidate this.
How can I do that?
Before trying to query the AD server I would like to check if it is alive and kicking. Looks like a trivial thing, but I haven´t found anything to elucidate this.
How can I do that?
I just try to get the current domain context associated with the running user:
If you want to connect to another domain you can try: