How to update value for msExchUserAccountControl for multiple user

Hi,

I have issue where value for msExchUserAccountControl were reverted to 2 for some of the users. I found the cause and fixed it. But i need to update the value to 0 for all those users. 

I can do it using ADSIEDIT for each user. But since its for bulk users, i need command line help. Is there any script or command which can do this? Using set-aduser i cant find any parameter which can modify the msexch properties.

Thanks.

April 6th, 2015 5:27am

Hello

2 means is disabled user.
Why need enable user?

Free Windows Admin Tool Kit Click here and download it now
April 6th, 2015 7:37am

Hi,

yes, 2 means disabled user but not disabled in AD. This value need to be 0 for enterprise vault to recognize that the mailbox is enabled and it can archive. thanks.

April 6th, 2015 9:37pm

hi,

i have found the answer. the below command can be used to update this parameter. thanks.

Set-ADUser -Identity "<user name or DN>" -Replace @{msExchUserAccountControl="0"}

T

Free Windows Admin Tool Kit Click here and download it now
April 8th, 2015 3:56am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics