Automating AD Administration with Windows PowerShell

13
Automating AD Administration with Windows PowerShell Don Jones @concentrateddon

description

Automating AD Administration with Windows PowerShell. Don Jones @concentrateddon. What We’ll Cover. Key Active Directory Management Tasks Core PowerShell Patterns and Practices Use these same patterns with almost any command from almost any technology Pipeline Parameter Binding - PowerPoint PPT Presentation

Transcript of Automating AD Administration with Windows PowerShell

Page 1: Automating AD Administration with Windows PowerShell

Automating AD Administration with Windows PowerShellDon Jones@concentrateddon

Page 2: Automating AD Administration with Windows PowerShell

What We’ll Cover

• Key Active Directory Management Tasks• Core PowerShell Patterns and Practices• Use these same patterns with almost any command from

almost any technology• Pipeline Parameter Binding• Parenthetical Expressions• Property Value Expansion

Page 3: Automating AD Administration with Windows PowerShell

A Quick Note

• This session will primarily use demonstrations• I will capture a transcript of my shell activity• Will be available from ConcentratedTech.com (“Downloads”)

by next week

3

Page 4: Automating AD Administration with Windows PowerShell

Ways to Manage Active Directory

• Microsoft ActiveDirectory Module• Supplied with Windows Server 2008 R2• Available in RSAT for Windows 7• Cannot run on other versions of Windows• Talks to 2008R2 domains natively• 2003-2008 domain controllers require free Management Gateway

RTW• Quest Active Directory Snap-In

• Talks to 2000+ domain controllers natively• Also talks to ADAM/ADLDS• Runs on any version of Windows• Better support for schema extensions• Essentially the same use patterns• Free!

Page 5: Automating AD Administration with Windows PowerShell

Download Locations

• Windows 7 RSAT: http://bit.ly/auHwcO• AD Management Gateway: http://bit.ly/eZNYr0• Quest AD cmdlets: http://bit.ly/1EAVF0

Page 6: Automating AD Administration with Windows PowerShell

The AD: Drive

• Provides a persisted security context• Mapped to your logon domain• Switch to this drive and run New-PSDrive to map additional

domains• MS AD cmdlets “inherit” the credentials of the current drive• Can also use the –credential parameter to provide a credential• Map drives in your profile to have them always available

Page 7: Automating AD Administration with Windows PowerShell

Let the Demos Begin

• Enough slides… on to the product!• Please raise questions as we go!

Page 8: Automating AD Administration with Windows PowerShell

DEMOPipeline Parameter BindingCreating New AD UsersPipelining and –passThru(Re)Setting Passwords

Page 9: Automating AD Administration with Windows PowerShell

DEMOCreating a profile scriptGetting computer names: Three WaysExploring the MS AD CmdletsExploring the Quest AD CmdletsQuerying Properties of AD Objects

Page 10: Automating AD Administration with Windows PowerShell

Final Chance for Q&A

• Additional Resources:• http://ConcentratedTech.com• http://manning.com/jones• @concentrateddon• http://www.youtube.com/

concentrateddon• See me for add’l resources• Recorded PowerShell workshops• Demo videos• Etc.

Page 11: Automating AD Administration with Windows PowerShell

Stay up to date with TechNet Belux

Register for our newsletters and stay up to date:http://www.technet-newsletters.be

• Technical updates• Event announcements and registration• Top downloads

Join us on Facebookhttp://www.facebook.com/technetbehttp://www.facebook.com/technetbelux

LinkedIn: http://linkd.in/technetbelux/

Twitter: @technetbelux

Download MSDN/TechNet Desktop Gadget

http://bit.ly/msdntngadget

Page 12: Automating AD Administration with Windows PowerShell

TechDays 2011 On-Demand

• Watch this session on-demand via TechNet Edge http://technet.microsoft.com/fr-be/edge/

http://technet.microsoft.com/nl-be/edge/

• Download to your favorite MP3 or video player• Get access to slides and recommended resources by the speakers

Page 13: Automating AD Administration with Windows PowerShell

THANK YOU