Jump to content

Group Membership


Recommended Posts

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())
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...