Powershell / quest commandlets script that will export a list of users that are Enabled and "Do Not" have SID History then export to .csv file

mjm21
mjm21 used Ask the Experts™
on
Powershell / quest commandlets script that will export a list of users that are Enabled and "Do Not" have SID History then export to .csv file
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
get-qaduser -sl 0 -enabled -ip sidhistory | where{$_.sidhistory -eq "<not set>"} | select samaccountname | export-csv users.csv

Author

Commented:
testing now

Author

Commented:
Can you sendme one that will run with the quest commandlets?  Also, set it in such a way that we are pulling from a particular OU?
Well, with above example we are using Quest Cmdlet. To go after users in a particular OU, try this:

get-qaduser -searchroot 'mydomain.net/AccountingOU/ -sizelimit 0 -enabled -ip sidhistory | where{$_.sidhistory -eq "<not set>"} | select samaccountname | export-csv users.csv

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial