Posted by: Colin Smith
Active Directory, Powershell, Windows, Windows Administration
I have been asked how to manage Active Directory with Powershell. The best way is with the Quest Software cmd-lets for Active Directory. They are free and available at http://www.quest.com/powershell/activeroles-server.aspx. Once you download them and install them you will still need to add the snapin to your powershell profile. In order to do this just open powershell and do the following.
This will open your powershell profile in notepad. The Powershell profile is really just a powershell script. You can have it do anything you want. I have mine add a few psdrives that I use often and add the snapins that I need. Just add the following line to your profile script and you will be able to use all the AD cmd-lets that Quest has been so kind to supply for free.
You can do this with any set of snapins that you find. I have some for sqlserver as well that come in handy.
Let me know if you have any questions by going to http://sysadminsmith.com and clicking the submit a question link to the right.