Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

AD Audit - Please help

$
0
0

Hi,

I have been assigned task to audit and delete disabled AD accounts. However, there are couple of things that I need to make sure before taking action. One is check for service accounts, second is accounts should belong to a particular OUs only and does not have **DO NOT...* in the description.

Using quest or native module I am able to resolve the part of my task.

sample:

$users = get-qaduser -searchroot 'domain.com/Users/DeleteOU1' -Disabled | select SamAccountName | Export-Csv  C:\temp\ADCleanup\userdel.csv

However, I am unsure how to check with each column items from csv to the description using import-csv option.

Any help will be greatly appreciated.

Thanks

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles