Using Powershell against Active Directory
Posted on 2010-11-15
When we had Windows 2003 servers, I used the Quest ActiveRoles product quite a lot to run Powershell written queries against our Active Directory.
We now have Windows 2008 R2 servers, and I understand those commands are included in the native Powershell installation?
I was wondering someone could help me with a query I had -
We have about 500 service accounts in our AD, all starting with the word "service". They are also located in the same OU (domain>Special>Service)
I would like to run a Powershell query to list all of this accounts into a text file. I would also like there to be a carriage return after each entry.
Does anyone know how I can achieve this?