Welcome to MSDN Blogs Sign in | Join | Help

Active Directory Cmdlets

More great cmdlets from our partners. Quest Software, known for its ActiveRoles Server and PowerGUI, is offering its new Active Directory cmdlets to the community free of charge.

 

To get them, click: PowerShell Cmdlets for Active Directory.

 

The ZIP file includes a Setup.exe executable that registers the PsSnapin and adds it to a custom console. To open the console, click:  Start | All Programs | Quest Software | ActiveRoles Server | ActiveRoles Management Shell for Active Directory (beta).

 

Quest graciously used a "QAD" prefix on their nouns, instead of "AD" to leave room for "official" Active Directory cmdlets.

 

To find them in PowerShell, type: 

            get-command -pssnapin quest*

            -or-

            get-command *qad*

 

Cmdlets are:

  • Get-QADUser
  • Set-QADUser
  • New-QADUser
  • New-QADGroup
  • Add-QADGroupMember
  • Remove-QADGroupMember
  • Connect-QADService
  • Disconnect-QADService

The download site also offers documentation for the cmdlets with some handy examples.

 

(Just FYI, the examples use a $pwd variable to store passwords. If you use this variable name, it overwrites the $pwd automatic variable that stores the path to the current directory.)

 

And be sure to check out the free PowerShell Directory Services provider in PowerShell Community Extensions PSCX 1.1. The PowerShell Guy has a nice demo of the provider. (Sorry for missing this!)

 

June Blender [MSFT]
Senior Programming Writer
Windows PowerShell

Published Thursday, April 12, 2007 10:14 PM by PowerShellTeam
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Active Directory Cmdlets

PSCX has an AD Provider that can be found at

http://www.codeplex.com/PowerShellCX

It would be great to see some examples of using the PSCX provider in conjunction with the cmdlets provided by Quest.

Thursday, April 12, 2007 6:32 PM by Andy

# re: Active Directory Cmdlets

Thursday, April 12, 2007 7:30 PM by darren

# re: Active Directory Cmdlets

I wonder if PSCX includes an AD Provider.  :-)

In Colorado, that's what we used to call, "all crosshairs on the same gopher".  

Jeffrey Snover [MSFT]

Windows Management Partner Architect

Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell

Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Thursday, April 12, 2007 8:37 PM by PowerShellTeam

# re: Active Directory Cmdlets

With Powershell and a Passion for FREE STUFF!

PSCX has its believers :)

Friday, April 13, 2007 8:38 AM by Brandon (BSONPOSH)

# re: Active Directory Cmdlets

Ack! You can't forget what you never knew. Sorry about that -- time to investigate the community extensions.

Can someone write a cmdlet to increase the day to 30 hours?

-- juneb

Friday, April 13, 2007 12:15 PM by PowerShellTeam

# AD cmdlets details

I posted some details on the AD cmdlets here: http://dmitrysotnikov.wordpress.com/2007/04/14/ad-cmdlets-101-available/

Enjoy!

Monday, April 16, 2007 9:14 AM by Dmitry Sotnikov

# AD cmdlets details

Monday, April 16, 2007 9:15 AM by Dmitry Sotnikov

# Active Directory Cmdlets in VB

how would I call these from VB? I can call my Exchange shell commands with the following, but how with Qwest?

       'The following code opens a runspace that has access to the Exchange Management Shell.

       rsConfig = RunspaceConfiguration.Create()

       info = rsConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin", snapInException)

       myRunspace = RunspaceFactory.CreateRunspace(rsConfig)

       myRunspace.Open()

Monday, February 18, 2008 1:35 PM by Don

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker