Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How to fetch groups and users on a win2k systemby OzzyOsbourne (Chaplain) |
on Oct 11, 2002 at 17:59 UTC ( [id://204609]=note: print w/replies, xml ) | Need Help?? |
Admin::Misc won't pull correct info on a 2000 domain even in mixed mode. It will pull data from the PDC emmulator, but if you have users that were created in AD, you won't get them. You have to access ADSI directly. I did this in a script found here. Pull out the first 2 subs. One will do NT4, and the other will do win2k via ADSI. The ADSI stuff was kind of hard to figure out, as there isn't a lot of info out there on Perl vs. ADSI.
In Section
Seekers of Perl Wisdom
|
|