Link to home
Start Free TrialLog in
Avatar of Justin Tucker
Justin Tucker

asked on

Get all disabled users in specific OU's in Active Directory using Quest Powershell

I have begun running a script to pull all users that are disabled within multiple OU's can you let me know where i'm going wrong please?

Get-QADUser -Searchbase "OU=Enterprise Objects, DC=, DC=" - disabled
Avatar of Jonathan Brite
Jonathan Brite

why not just use the Search-ADAccount cmdlet from the Active Directory module:

"Search-ADAccount -AccountDisabled"
here is a quick guide to help you install the Active Directory module for PowerShell.

http://www.tomsitpro.com/articles/powershell-active-directory-cmdlets,2-801.html
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Justin Tucker

ASKER

Thanks Will!