Jump to content

Integration in Microsoft AD?


slubitz
 Share

Recommended Posts

Hi all,

is there a way to integrate AutoIt into microsoft's Active Directory?

I would like to build a GUI which allows me to view Global Groups and to add Persons to this group.

I need this, because some persons in our Company need to add persons to different Groups and I would not like to show them the complete Active Directory structure.........

A GUI is complicated enough for them :-)

regards,

Stefan

Link to comment
Share on other sites

Hi all,

is there a way to integrate AutoIt into microsoft's Active Directory?

I would like to  build a GUI which allows me to view Global Groups and to add Persons to this group.

I need this, because some persons in our Company need to add persons to different Groups and I would not like to show them the complete Active Directory structure.........

A GUI is complicated enough for them :-)

regards,

Stefan

<{POST_SNAPBACK}>

Try google wich has lots of these things voor vb scripts (.vbs)

My tutor on my school used this to work with AD and because vb is a bit like autoit you can maybe let vb and a autoit script work together.

I have some vb examples for AD somewhere but not at this moment so try google

Link to comment
Share on other sites

Here are some VBScripts that do what you ask. I'd like to see your AutoIT3 GUI once you have created it...Please post so that all may benefit.

How do I get all the users in a group using ADSI?

Set GroupObj = GetObject("WinNT://" & DomainString & "/" & GroupString)
For each UserObj in GroupObj.Members
    List = List & UserObj.Name
Next
Wscript.Echo List

How do I add a user to a group using ADSI?

DomainString = "DomainName"
UserString = "jdoe"
GroupString = "GroupName"
Set GroupObj = GetObject("WinNT://" & DomainString & "/" & GroupString)
GroupObj.Add ("WinNT://" & DomainString & "/" & UserString)
Set DomainObj = Nothing
Set GroupObj = Nothing
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...