Get the Perl PDK from the ActiveState site, that has a very cool _vbscript_ to perl converter. It isn't perfect but is nice when trying to figure out how to do something. I do agree that perl for win32 resources have dried up a little, I think it is more an issue of admins than people to write the books and docs. In my experience, when you look at the overall group of win32 admins, most don't script, of those that do, most take _vbscript_s and try to tweak them to make them do something. I don't visualize Monad nor DotNET helping this. The quality of the admins have to change, not the tools unless you can get a tool to take a poorly stated problem and create a script from it. Those who can think in the proper way to write a script or some other automated process from scratch are doing it, sometimes in one language, sometimes in multiple.
 
Other than that, I tend to do a lot of calling out to exe's versus using OLE/COM stuff. Most of my tools are written with perl in mind either because I am writing them specifically to call from perl or at some point end up doing. If I don't write at least one perl script a week that calls out to adfind for something I don't figure the week is over. Basically if I need to find something I use adfind over ADO. If I need to update something, I may do it straight from ADSI or if it is too difficult in ADSI I use admod called from the perl.
 
As for the rest, is there something on the user objects that can be queried to indicate that they should be disabled? If so, then you could use oldcmp to do it via the -af switch.
 
Admod, on the other hand can take a file with DNs (you pipe it in) and then do work on those, it won't however parse out a CSV with multiple fields.
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kern, Tom
Sent: Wednesday, September 21, 2005 4:30 PM
To: [email protected]
Subject: RE: [ActiveDir] disabling users

I only have time to learn one scripting lang.
i figured perl is the better way to go as i have to work with linux and solaris as well.
 
know of any good docs,books,sites on perl and COM+ or adsi?
something that will teach you both like the _vbscript_ resources do?
 
i really think there is a market for perl and AD/win32 out there that is untapped.
O'reilly has let most of their win32 perl books become outdated and stop at Win NT as has Dave Roth.
 
I'm not a programmer and i don't have time to learn multipe scripting langs, so i always thought perl would be the best way to go.
I find it as approachable as _vbscript_ but unlike _vbscript_, I don't find many rescources for using it on win32 systems.
I'm afraid learning perl and working with windows might be an uphill battle.
are there resources for teaching you how to use perl with cdo,wmi,adsi,ado,etc?
i'm not a total newbie to perl, i've used it on linux but i've never really done much on windows with activestate.
and as i've said, i'm not a programmer and i didn''t major in comp sci, so a lot of this stuff is not second nature to me and hasn't been pounded in for years.
so jumping from lang to lang for me is not really an option.
 
thanks
 
-----Original Message-----
From: Brian Desmond [mailto:[EMAIL PROTECTED]
Sent: Wed 9/21/2005 2:46 PM
To: [email protected]
Cc:
Subject: RE: [ActiveDir] disabling users

 

Reply via email to