Active Directory Administrative Center for Windows Server 2008 R2 implemented using ADPowershell!

Windows Server 2008 R2 doesn’t just add ADPowershell – it also adds Active Directory Administrative Center (or ADAC), a new GUI tool for AD administrators.  Read about it here.  What’s more, while you can’t tell just from looking at it, ADAC is implemented entirely over Windows PowerShell 2.0 and ADPowershell!  Every read and write to…

8

Error Reporting in Active Directory Powershell

In this blog, I will discuss the Active Directory (AD) PowerShell error reporting. Good error reporting is critical and it saves time to resolve an issue. Let’s start with the basics. In case of error, AD PowerShell cmdlet prints the error details which contain an error message. PS C:\> New-ADUser -Name:”ADPSUser” -SamAccountName:”ADPSUser” -Enabled:$true New-ADUser : The password does not meet the…

2

Active Directory Powershell: Installation using RSAT on Windows 7

Some of the blog readers have mentioned that it would be great to have AD Powershell cmdlets available on the Windows 7 client sku. The Microsoft Remote Server Administration Tools (RSAT) package addresses this exact issue. Here is the download location for the RSAT package: http://www.microsoft.com/downloads/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d&displaylang=en Now most users, including myself, do not want to…

3

Extending Active Directory Powershell

Today, I am going to show how we can leverage the power of Powershell V2 and Active Directory Module, and easily write powerful, professional cmdlets (with help message, positional parameters, default prompting, error handling etc.) for AD. Couple of weeks ago, one of my colleagues (Alexander Lash) introduced me to a cool feature in Powershell…

2

Active Directory Powershell: The Drive is the connection

People familiar with LDAP, ADSI or third party Active Directory Powershell cmdlets might be wondering where are the cmdlets for making and closing a connection? The answer is: connection lifecycle is automatically managed by AD cmdlets. If you want the cmdlet to target a specific server then use the -server parameter and provide “servername:portnum” value, otherwise…

4

Active Directory Powershell Overview

Although it is pretty easy to get the list of AD cmdlets using Powershell, many of you might be looking for a high level view of cmdlets classified by AD administrative scenarios and tasks. So here it goes… The current set of AD Powershell cmdlets can be classified into four broad categories: Account Management Topology…

3