?
Solved

automatically search all locked out IDs

Posted on 2010-11-20
4
Medium Priority
?
351 Views
Last Modified: 2012-05-10
I have a list of thousands ID name and need to find all locked out IDs. I can manually check them in AD. Is there any way to search them automatically using directory service command line?

Thanks in advance
0
Comment
Question by:howruaz9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
KenMcF earned 2000 total points
ID: 34180858
I would use powershell and the quest AD cmdlets

http://www.quest.com/powershell/activeroles-server.aspx

$users = get-content c:\user.txt
foreach ($user in $users){
$u = get-qaduser $user
if ($u.AccountIsLockedOut -eq "True"){
write-host "User Account $user is locked"
}}

of for all users in AD and export to csv file

get-qaduser -sizelimit 0 | where{$_.AccountIsLockedOut -eq "True"} | select Name | export-csv c:\lockedusers.csv
0
 

Author Comment

by:howruaz9
ID: 34181282

Thanks very much KenMcF, I will try it.

Is it possible to use directory service command line to do this job?
0
 
LVL 27

Assisted Solution

by:KenMcF
KenMcF earned 2000 total points
ID: 34181303
You can but it is harder. Take a look at this thread

http://powershell.com/cs/forums/p/268/318.aspx
0
 

Author Closing Comment

by:howruaz9
ID: 34181716
Many thanks KenMcF, I really appreciate your help.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Let's recap what we learned from yesterday's Skyport Systems webinar.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question