The Multifunctioning DBA:

Active Directory

1

September 24, 2009  7:30 AM

AD Audit in Powershell Script Part 2



Posted by: Colin Smith
Active Directory, AD, AD Administration, Powershell

Now that we have some idea about what this script is about and what we would like to accomplish with the script lets get into it. I have the code in the box below and I will just go over what I am doing . This is where the script will start so I am setting up my variables and then I will start...

September 23, 2009  4:35 PM

AD Audit in Powershell Script Part 1



Posted by: Colin Smith
Active Directory, AD, AD Administration, Powershell

As I said before I have completed my re-write of my Active Directory Audit into Powershell. Man is it better. more functional and less code. I love it. This script goes out and searches my domain for user accounts that are old and stale. By old and stale I mean that they were both created, and have...


July 23, 2009  9:43 PM

More with Quest AD Powershell CMDLETS



Posted by: Colin Smith
Active Directory, Domain Administration, Microsoft Windows, Powershell, Windows, Windows Administration

I am continuing work on the script that I am converting from VBScript to Powershell and I must say that it is going quite well with the help of the Quest cmdlets. In the script I want to go through a particular OU and delete any accounts that are currntly disabled, and were created a minimum of 180...


June 25, 2009  6:12 PM

Powershell Query AD



Posted by: Colin Smith
Active Directory, Powershell

I have talked in the past about some cmdlets that Quest Software provides for Powershell. Well today they came in usefull for me. My boss came up and wanted to know when the last time a certain service account had authenticated to the domain. Now we log all users logging in via our login script but...


March 30, 2009  9:57 PM

Scripting



Posted by: Colin Smith
Active Directory, Database Administration, Linux, Powershell, Scripting, System Administration, Unix, Windows, Windows Administration

So I have people ask me all the time how I can get so much done in a day. I have to be honest with you, I do not really do that much. This is because I write scripts to do anything and everything for me if I have to do it more than once I script it. If I think something...


February 24, 2009  6:18 PM

Powershell commands for Active Directory



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...


February 19, 2009  4:53 PM

AD Migration Script Q and A



Posted by: Colin Smith
Active Directory, Microsoft Windows, Powershell, Q and A, Windows Administration

I received a question from Sandeep as follows: Hi Colin, I saw your answer to one of the AD user creation question on IT Knowledge...


1