Quote:
Function IsMember(strDomain As String, strGroup _Thanks to Greg Reddick Link: http://my.advisor.com/doc/08691
As String, strMember As String) As Boolean
Dim grp As Object
Dim strPath As String
strPath = "WinNT://" & strDomain & "/"
Set grp = GetObject(strPath & strGroup & ",group")
IsMember = grp.IsMember(strPath & strMember)
End Function
No comments:
Post a Comment