Active Directory Administration with Windows PowerShell

Here are three good TechNet articles on using PowerShell with Microsoft’s Active Directory.

Active Directory Administration with Windows PowerShell
This article is a great stepping to the various aspects of using PowerShell and Active Directory. Here are the topics covered:

  • Account Management
  • Group Management
  • Managed Service Accounts
  • Organizational Units
  • Password Policies
  • Optional Features
  • Search\Modify Objects
  • Forest and Domain Management
  • Domain Controller and Operations Master Management

http://technet.microsoft.com/en-us/library/dd378937(v=ws.10).aspx

Active Directory Cmdlets in Windows PowerShell

Good documentation covering the cmdlets made available for active directory.

http://technet.microsoft.com/en-us/library/ee617195.aspx

Searching Active Directory with Windows PowerShell

This article goes in great detail explaining how a PowerShell script searches through Active Directory.  Also they have plenty of PowerShell scripts to check out.  Here the script from the article and they also have a few graphs to help explain the process.

$strFilter = "(&(objectCategory=User)(Department=Finance))"

$objDomain = New-Object System.DirectoryServices.DirectoryEntry

$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = $objDomain
$objSearcher.PageSize = 1000
$objSearcher.Filter = $strFilter
$objSearcher.SearchScope = "Subtree"

$colProplist = "name"
foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}

$colResults = $objSearcher.FindAll()

foreach ($objResult in $colResults)
    {$objItem = $objResult.Properties; $objItem.name}

 http://technet.microsoft.com/en-us/library/ff730967.aspx

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s