F
F
Fedor Valyaev2016-11-24 16:30:08
Active Directory
Fedor Valyaev, 2016-11-24 16:30:08

How to change string attributes of all AD users?

Hello! The crux of the problem is this. Exchange 2013 was incorrectly uninstalled and a new one installed. As a result, every existing mailbox generated an issue like "The object is corrupted and in an inconsistent state. The following errors were found during validation: The Database parameter is required on UserMailbox."
To resolve this issue, you need to change the HomeMDB, HomeMTA, and msExchHomeServerName settings. There are over9000 users and, to put it mildly, too lazy to do it with your hands. Can anyone suggest an effective method?
MS WS 2012R2 Domain Controller MS Exch 2013sp1
Mail Server
Thanks in advance for helping me handy...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew AT, 2017-01-07
@Owlfull


Did n't answer
? Set-ADUser $_ -Replace @{HomeMDB="what to replace 1"; HomeMTA="what to replace 2"; msExchHomeServerName="what to replace 3"}

P
powersa, 2016-11-24
@powersa

powershell at your fingertips

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question