#41892 - 2003-06-20 05:42 PM
Reading Users Group list and sending to Excel spreadsheet
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
Hi Guys
I am trying to document what groups are assigned to each user and write this information to a excel spreadsheet.
code:
Break On CLS
$sUser = "Richard.Farthing"
$objUser=GetObject("WinNT://@domain/$sUser,User")
For Each $objGroup In $objUser.Groups $objGroup.Name ? Next
That works but instead of displaying each group, I want to set it to a variable.
The excel part is not a problem, but this is.
Could this be done by putting it into an array and using unbound ???.
This part I am well lost.
|
|
Top
|
|
|
|
#41894 - 2003-06-20 06:11 PM
Re: Reading Users Group list and sending to Excel spreadsheet
|
Richie19Rich77
Seasoned Scripter
   
Registered: 2002-08-16
Posts: 624
Loc: London, England
|
Thanks for getting back so fast Jens, but....
I don't understand it, can someone explain what it does, because I am evan more confused now .
Thanks
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2375 anonymous users online.
|
|
|