S
S
SkyNezu2016-01-15 12:43:52
PowerShell
SkyNezu, 2016-01-15 12:43:52

How to unload the list of blocked accounts from AD?

I get a list of all users from a specific group with the Get-ADGroupMember -Identity 'Domain Admins' –Recursive
1 command. How can I get a list of only blocked users from the same group?
2. Or how to unload all users of the group, but indicating which accounts are blocked?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-01-15
@SkyNezu

feed the result to the pipeline and use the get-aduser cmdlet to check that the account is disabled.
upd: -properties * no need, I got excited here :D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question