Jump to content
Sign in to follow this  

in witch localgroup a domain user is ?

Recommended Posts


Hi all

I've got domain user in localgroup, how can i do to know in witch group a user is ?

I've find this

Local $objUser = ObjGet("WinNT://" & @ComputerName & "/" & @UserName)
 For $oGroup in $objUser.Groups
      MsgBox(4096, "Groups", $oGroup.Name, 10)

it woks on win2k but it not work on win2k3 64bit, do you have a idea ?


Edited by babou

Share this post

Link to post
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
Sign in to follow this