Sign in to follow this  
Followers 0
babou

in witch localgroup a domain user is ?

1 post in this topic

#1 ·  Posted (edited)

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)
 Next

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

thanks

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  
Followers 0