Re: Books/References new to scripting in AD/2003
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 May 2008 09:50:19 -0500
Timothy Parker wrote:
Hello, I am new to the scripting world in an AD environment. I have done
some stuff relating to web servers/e-commerce. I am now in charge of a 50+
user network and all its components. I am working on cleaning/updating and
organizing AD a bit and am looking to be able to pull some reports out of
this data for the office users (i.e.: telephone directory, etc) I am
looking for recommendations for good books/whitepapers, websites, etc to
help get me up to speed.
I have looked at the Scripting repository and have started to toy a bit
with some stuff there (script to pull AD users into an excel Spread***
for one) but can't seem to figure out how to get only active (non-disabled
users).
Thanks for any help and guidance you can offer.
Besides the Technet Script Center, the best resource is "Microsoft Windows
2000 Scripting Guide - Automating System Administration". I like the hard
copy text, but it is also available online at:
http://www.microsoft.com/technet/scriptcenter/guide/sagsas_overview.mspx?mfr=true
For tips on using ADO to search AD in scripts see this link:
http://www.rlmueller.net/ADOSearchTips.htm
For example, to filter on all non-disabled users:
strFilter = "(&(objectCategory=person)(objectClass=user)" _
& "(!userAccountControl:1.2.840.113556.1.4.803:=2))"
For documentation on Active Directory attributes see this link:
http://www.rlmueller.net/UserAttributes.htm
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
.
- Follow-Ups:
- Re: Books/References new to scripting in AD/2003
- From: Timothy Parker
- Re: Books/References new to scripting in AD/2003
- References:
- Books/References new to scripting in AD/2003
- From: Timothy Parker
- Books/References new to scripting in AD/2003
- Prev by Date: Books/References new to scripting in AD/2003
- Next by Date: Comparing Two Spreadsheets
- Previous by thread: Books/References new to scripting in AD/2003
- Next by thread: Re: Books/References new to scripting in AD/2003
- Index(es):
Loading