I was working in the lab today trying to debug a reproduction of an OWA hosting issue and I had the need to set the msExchQueryBaseDN for 10,000 users. Typically you can use Poweshell with the get-user | set-user commands to access mailbox properties for stamping purposes, however the msExchQueryBaseDN attribute is a user based attribute. Here are two ways you can do it:
How to set an attribute for one user via powershell $user = ([ADSI]"LDAP://OU=MyOU,DC=Company,DC=com").psbase;$user.Properties["msExchQueryBaseDN"].Value = "CN=User,OU=MyOU,DC=Company,DC=com";$user.CommitChanges();
What is Exchange 2007's Last Log Resilience? Can I seed a cluster continuous replication passive
Kudos to Dave for this article and the PS command. This fixed my customer's issue.