MasterRacker
New member
I'm suffering temporary braindeath here. Which of the admin tools, server res kit tools or command line tools can give me a simple listing of all my AD security groups and the members of each group?
This combination of CLIs gave me login scripts for each user:
[small][tt]dsquery user -name * -limit 300 | dsget user -ln -fn -upn -samid -loscr >> C:\LoginScripts.txt[/tt][/small]
and this is close for groups:
[small][tt]dsquery user -name * -limit 300 | dsget user -memberof -expand >> c:\GroupMembership.txt[/tt][/small]
however "-memberof" doesn't seem to work with other switches, so I get more than I need for group memberships and no names. I need a better way to do this
_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
This combination of CLIs gave me login scripts for each user:
[small][tt]dsquery user -name * -limit 300 | dsget user -ln -fn -upn -samid -loscr >> C:\LoginScripts.txt[/tt][/small]
and this is close for groups:
[small][tt]dsquery user -name * -limit 300 | dsget user -memberof -expand >> c:\GroupMembership.txt[/tt][/small]
however "-memberof" doesn't seem to work with other switches, so I get more than I need for group memberships and no names. I need a better way to do this
_____
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]