script or cmdlet to retrieve service accounts in AD, and export to a CSV file
Posted on 2016-08-31
My customer runs a Windows 2008 Forest/domain functional level with multiple sites, and OUs, and one of these OUs
is dedicated to host service accounts.
Their standard convention name for any service accounts should start with "SVC" defined on the user logon name and display name
I have following scenario, and need to know to get a script, or cmdlet to retrieve any service accounts under a specific OU which logon name or display name may not contain "SVC"
The report should be exported to a CSV, and contain only those service accounts that were created with a different standard for logon name or display name
Please, test the script on your lab before posting here