Advertisement

07.22.2008 at 04:45PM PDT, ID: 23586958
[x]
Attachment Details

A constraint violation occured. (Exception fomr HRESULT:0x8007202F

Asked by vbchewie in Exchange Email Server

Tags: , , ,

I am trying to write a PowerShell Script to and New Users to my domain.  I am using virtual organization as instructed by http://technet.microsoft.com/en-us/exchange/bb936719.aspx
One of the requirements to get the separate GAL to function properly is to change the msExchQueryBaseDN value.  I am using the following code to change the value but I get the following error.

Exception calling "CommitChanges" with "0" argument(s): "A constraint violation
 occurred. (Exception from HRESULT: 0x8007202F)"
At E:\Exchange Server\Scripts\NewUser.ps1:191 char:20
+ $user.CommitChanges( <<<< );

Please Advise,Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
#=============================
# Mailbox Confirmation Section
#=============================
 
$a1 = get-mailbox $UserAlias
$a2 = $a1.name
$a3 = $a1.addresslistmembership
$a4 = $a1.OfflineAddressBook
$a5 = $a1.userprincipalname
$a6 = $a1.organizationalunit
$a7 = $a1.customattribute1
$a8 = $a1.distinguishedname
$a10 = $a1.emailaddresses
 
"11 of 14, Setting msExchQueryBaseDN"
#To Bind:
$user = ([ADSI]"LDAP://$a8").psbase;
#To Modify:
$user.Properties["msExchQueryBaseDN"].Value = "ou=$a7,ou=Companies,dc=contoso,dc=com";
$user.CommitChanges();
 
$a9 = $user.Properties["msExchQueryBaseDN"]
$a9b =$user.Properties["memberof"]
[+][-]07.22.2008 at 06:17PM PDT, ID: 22065279

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Exchange Email Server
Tags: Microsoft, Exchange Server 2007, SP1, Power Shell msExchQueryBaseDN
Sign Up Now!
Solution Provided By: BSonPosh
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.23.2008 at 08:42AM PDT, ID: 22070440

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:41AM PDT, ID: 22071098

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 10:13AM PDT, ID: 22071472

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 10:39AM PDT, ID: 22071798

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 11:22AM PDT, ID: 22072250

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 12:24PM PDT, ID: 22072890

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 12:52PM PDT, ID: 22073143

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 02:13PM PDT, ID: 22073930

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 02:22PM PDT, ID: 22074022

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628