Link to home
Create AccountLog in
Avatar of Jerry Seinfield
Jerry SeinfieldFlag for United States of America

asked on

how to get a list of Inactive AD OU’s on WIndows server 2008 R2

Can someone please help me to get the right powershell command to pull out a list of inactive OUs from AD?
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Are you looking for inactive users, more on that here

http://adisfun.blogspot.com/2012/08/find-inactive-users-using-powershell.html

oldcmp by Joeware is another great tool and adtidy is a great GUI  tool  that can help you with this task.

Thanks

Mike
Avatar of Jerry Seinfield

ASKER

Hi Mike,

what about inactive computers?

Can we pull out inactive users and computers from AD on a single powershell cmdlet?
if so,

what is the right syntax?
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Thanks Mike,

so, let's assume that all disabled accounts are member of an OU named DisabledUsers. Can we pull out that information?
If so,
is this reliable? if not, your thoughts?