Sign in to follow this  
Followers 0
HuggyBear

Group Membership

3 posts in this topic

Is there a way using AutoIt scripts to find out which group(s) a username is a member of?

Thanks,

MH

Share this post


Link to post
Share on other sites



Your best bet is to use command line tools, parse into a text file and use Autoit to display the result.

There is a very nice free tool Here and if you want to find more of this type of tools, check This Link


CheersNobby

Share this post


Link to post
Share on other sites

Needs the beta version but...

$colGroups = ObjGet("WinNT://" & @ComputerName)
Dim $Array[1]
$Array[0] = "group"
$colGroups.Filter = $Array

For $objGroup In $colGroups
    For $objUser In $objGroup.Members
        If $objUser.Name = @UserName Then
            MsgBox(0, "test", $objGroup.Name)
        EndIf
    Next
Next

VBS Source


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

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
Sign in to follow this  
Followers 0