QuestWinsows PowerShell
Find all enabled AD usersget-qaduser -includeallproperties -ldapfilter "(!(userAccountControl:1.2.840.113556.1.4.803:=2))"
# Get Enabled users only
Get-QADUser -Enabled -SizeLimit 0
- or -
# Get Disabled users only
Get-QADUser -Disabled -SizeLimit 0
No comments:
Post a Comment