Marc

Active Directory Tool: Userinfo

8 posts in this topic

#1 ·  Posted (edited)

Hi all,

a long time ago I wanted a comfortable tool to get information of a specified user in our active directory.
After some searching I decided to create my own tool and "Userinfo" was born.

  • displays all useful information about the user (retrieved from active directory)
  • displays the PCs/NCs the user has (if this information can be retrieved from a database)
  • displays the list of neighbours of the current user
  • compares the active directoy groups of the selected user with another user
  • unlock a locked account
  • german/english user interface

Here's a screenshot of what Userinfo looks like:

post-327-0-88014200-1375120665_thumb.gif

The active directory-code has been shamelessly stolen from inspired by the excellent ">Active Directory UDF" created by water.

Feel free to adjust it to your needs ;)
For example, you have to adjust the lines 893/4, 1469/70, 1555/6 and 2018/9 to the adresses your own databases to include PC-Information.

(Currently the first command in the functions for database-query is just a simple Return.)

Userinfo v2.80

Userinfo.zip

Hopefully some of you will find it useful...

best regards,
Marc

Edited by Marc

It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
Share on other sites



Good looking example :thumbsup:

I'm going to post a link on the Active Directory Example Scripts thread.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

A very interesting tool...  Thanks for the code, it will be a good learning tool indeed!

Share this post


Link to post
Share on other sites

because of what I have an error


---------------------------

---------------------------
We intercepted a COM Error!

Number is: 80005000

Windescription is:

err.description is:

err.source is:

err.helpfile is:

err.helpcontext is:

err.lastdllerror is: 0

err.retcode is:

Script Line number is: 605
---------------------------
OK
---------------------------

Share this post


Link to post
Share on other sites

It seems to understand.
It was necessary to to specify the domain on 597 line?
Funk finde_domaene ($ user = "", $ domaene = "DOMANE.RU")

Share this post


Link to post
Share on other sites

Hey Marc,

 

are you still supporting this? when I click on "Neighbours" I get a COM error:

 

We Intercepted a COM Error! Number is :80020006

windescription is: Uknown Name

 

 

is there an updated version?

Share this post


Link to post
Share on other sites
On 2.12.2015 at 7:34 AM, araneon said:

It seems to understand.
It was necessary to to specify the domain on 597 line?
Funk finde_domaene ($ user = "", $ domaene = "DOMANE.RU")

Hi araneon, sorry for the late reply - after two years, I did not expect questions to come up ;)

You can add a domain name here as default, which wil be used if no domain is chosen in the GUI. At least on my PC, the GUI displays all Domains known to the PC in the Listbox.


It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
Share on other sites
On 11.7.2016 at 7:10 PM, Battalion said:

are you still supporting this? when I click on "Neighbours" I get a COM error:

Hi Battalion,

sorry for the late answer. I am still using this tool (but in a different version - not multilingual and somewhat tweaked to fit in our specific environment).

Anyway, the function suche_nachbarn() does rely on the active directory having set the "physicalDeliveryOfficeName". I suppose the crash occures here, do you have a line number where the error occures to investigate this?


It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
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