| |
royb5000
Posts: 54
Score: 0
Joined: 5/4/2005
From: USA
Status: offline
|
Here is one that I have used that i picked up somewhere and it works pretty nice. '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '%%%%%%%%%%%%%%%%%%%%%%%%%%%%ISMEMBER Function%%%%%%%%%%%%%%%%%%%%%%% '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Function ISMEMBER(groupName) If IsEmpty(groupListD) then Set groupListD = CreateObject("Scripting.Dictionary") '50 groupListD.CompareMode =TextCompare ADSPath = currentDomain & "/" & currentUser set userPath = GetObject("WinNT://" & ADSPath & ",user") for each listGroup in userPath.Groups groupListD.Add listGroup.Name, "-" Next end if ISMEMBER = CBool(groupListD.Exists(groupName)) End Function
|
|