Question:
I use the code found at http://support.microsoft.com/kb/306273
to add a windows user. The problem is i need to add the user to a group, but the gro
You should be able to use the WindowsIdentity and WindowsPrincipal classes:
Dim currentIdentity as WindowsIdentity = WindowsIdentity.GetCurrent()
Dim currentPrincipal as WindowsPrincipal = New WindowsPrincipal(currentIdentity)
If currentPrincipal.IsInRole(WindowsBuiltInRole.Guest) Then
Foobar()
End If
Nevermind, I see you were actually trying to ADD a user to the group.