PowerShell commands for Active Directory

I wanted to blog about this since I read it at Evan Dodds’ Blog.

The ActiveRoles Management Shell for Active Directory is a set of PowerShell commands (CMDLETs) from Quest Software that can be downloaded and used for free to perform administrative tasks within Active Directory.

The ActiveRoles Management Shell for Active Directory is an Active Directoryspecific
automation and scripting shell that provides a command-line
management interface for administering directory data either via Quest
ActiveRoles Server or by directly accessing Active Directory domain
controllers. The ActiveRoles Management Shell is built on Microsoft Windows
PowerShell technology.

The ActiveRoles Management Shell is implemented as a Windows PowerShell
snap-in, providing an extension to the Windows PowerShell environment.

As the commands provided by the ActiveRoles Management Shell conform to
the Windows PowerShell standards, and are fully compatible with the default
command-line tools that come with Windows PowerShell, the information
found in the above documents of Microsoft’s is fully applicable to the
ActiveRoles Management Shell for Active Directory.

Recently, I was trying to export all the Proxy Addresses from some users, so this cmdlets turned out to be very handy. Here’s the command I ran:

Get-QADUser -DontUseDefaultIncludedProperties -ObjectAttributes @{mail='*'} -IncludedProperties sAMAccountName,distinguishedName,mail,userPrincipalName,proxyAddresses  -SerializeValues -SizeLimit 0 | Export-Csv 'C:\proxyAddresses.csv'

And here’s the full list of the available cmdlets:

CONNECT-QADSERVICE
DISCONNECT-QADSERVICE
GET-QADUSER
SET-QADUSER
NEW-QADUSER
DISABLE-QADUSER
ENABLE-QADUSER
UNLOCK-QADUSER
GET-QADGROUP
SET-QADGROUP
NEW-QADGROUP
GET-QADGROUPMEMBER
ADD-QADGROUPMEMBER
REMOVE-QADGROUPMEMBER
GET-QADCOMPUTER
GET-QADOBJECT
SET-QADOBJECT
NEW-QADOBJECT
MOVE-QADOBJECT
RENAME-QADOBJECT
REMOVE-QADOBJECT
NEW-QADPASSWORDSETTINGSOBJECT
GET-QADPASSWORDSETTINGSOBJECT
ADD-QADPASSWORDSETTINGSOBJECTAPPLIESTO
REMOVE-QADPASSWORDSETTINGSOBJECTAPPLIESTO
CONVERT-QADATTRIBUTEVALUE
GET-QADPSSNAPINSETTINGS
SET-QADPSSNAPINSETTINGS

Leave a Reply

Your email address will not be published. Required fields are marked *