I use this code to determine if a user is a member of a given group:
It works on Win2k, but not on XP. It blows on this line: Set oGroup = GetObject("WinNT://" & sDomain & "/" & GroupName) throwing error -2147467259 (800401e4) with the description: "Automation error. Unspecified error.
I know next to nothing about ADSI. Tried Google but only found people asking the same question.