Tutorials, Master Windows Server 2008 R2 and Exchange 2010

POST1 Using PowerShell to Bend R2's Active Directory to your Will

October 14th, 2011

8:30 AM - 12:30 PM

Level: Advanced

Mark Minasi

IT Consultant, Author, Speaker

MR&D

Most of us who have to manage an AD sometimes run into a problem like, "I need to disable all accounts that haven't logged on in the past 60 days,"only to find that Active Directory Users and Computers doesn't seem to be able to help much there.  (It can, actually but you'd have to put on your diving helmet and sink many fathoms into LDAP query-land to get the job done.)  So you wonder, "what to do here?," and start talking yourself into solving the problem by hand, click by click.  You KNOW a few days of writing a VBScript or two might solve the problem, but that's an awful lot of work so, again, what to do?

Microsoft's given us the answer in their 76 shiny new Active Directory-related PowerShell commands.  With a bit of practice, you can glue two or three PowerShell commands into a powerful one-liner that can do what used to take three days and 150 lines of VBScript...even if you've never written a line of code.  (Or want to.)  Join command-line techofreak Mark Minasi in a quick, clear guide to the PowerShell commands you need -- and how to make them work together.  Don't know PowerShell? No problem -- every attendee will leave prepared to create their first "one-liner," even if they've never used PowerShell!