Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: using ADSI to recurse the group object for all members of a group.

by Kanji (Parson)
on Feb 28, 2002 at 17:10 UTC ( [id://148283]=note: print w/replies, xml ) Need Help??


in reply to using ADSI to recurse the group object for all members of a group.

I'm not familiar with Dim, but porting sample VB snippets to Perl is usually trivial ... at least enough so that you have a good starting point.

#!perl # Works on my Win2K box running # Perl 5.6.1 (AS's 630 build); # maybe it'll work for you, too! :-) use strict; use warnings; use Win32; use Win32::OLE 'in'; my $group = sprintf "WinNT://%s/Administrators", shift || Win32::NodeName; my $admin = Win32::OLE->GetObject($group) or die( Win32::OLE->LastError, "\n" ); for my $member ( in $admin->members ) { printf "%s (%s)\n", $member->name, $member->class; }

    --k.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://148283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-03-28 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found