Jump to content

Recommended Posts

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

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
×
×
  • Create New...