Link to home
Start Free TrialLog in
Avatar of Anthony K O365
Anthony K O365Flag for United States of America

asked on

Find msExchUserAccountControl Value = 2

I need a query or PS cmdlet to find all enabled accounts whose  msExchUserAccountControl Value = 2
Yes, the value should be 0  for enabled accounts, but this value sometimes will NOT get set to zero once enabled. I need to find those accounts and then set them to zero if needed.

thanks
ASKER CERTIFIED SOLUTION
Avatar of FOX
FOX
Flag of United States of America 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 Anthony K O365

ASKER

To be more specific, I need to find not a user account, but a Shared mailbox that is enabled but the msExchUserAccountControl is set to 2

Thank you