Google
Search WWW Search msexchangetips.blogspot.com

Tuesday, January 18, 2011

Cannot create mail enabled user because an existing object with type already has the same proxy addresses/MasterAccountSid.

When provisioning an MEU using the Prepare-MoveRequest.Ps1 script you receive the following error:

[PS] C:\Program Files\Microsoft\Exchange Server\V14\Scripts>.\Prepare-MoveRequest.Ps1 -Identity "CN=mbperm1,OU=office,D
=ipcfcdom,DC=inphonic,DC=com" -RemoteForestDomainController "dcfcdc03.ipcfcdom.inphonic.com" -RemoteForestCredential $R
mote -LocalForestDomainController "eqdcp01.corp.dom" -LocalForestCredential $Local -TargetMailUserOU "OU=office,DC=corp
DC=dom" -uselocalobject -overwritelocalobject
The operation couldn't be performed because object 'corp.dom/Office/mbperm1' couldn't be found on 'EQDCP01.corp.dom'.
+ CategoryInfo : NotSpecified: (:) [Get-Recipient], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : 4A3D86A8,Microsoft.Exchange.Management.RecipientTasks.GetRecipient

C:\Program Files\Microsoft\Exchange Server\V14\Scripts\Prepare-MoveRequest.ps1 : Cannot create mail enabled user becaus
e an existing object with type already has the same proxy addresses/MasterAccountSid.
At line:1 char:26
+ .\Prepare-MoveRequest.Ps1 <<<< -Identity "CN=mbperm1,OU=office,DC=ipcfcdom,DC=inphonic,DC=com" -RemoteForestDomainCo
ntroller "dcfcdc03.ipcfcdom.inphonic.com" -RemoteForestCredential $Remote -LocalForestDomainController "eqdcp01.corp.do
m" -LocalForestCredential $Local -TargetMailUserOU "OU=office,DC=corp,DC=dom" -uselocalobject -overwritelocalobject
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Prepare-MoveRequest.ps1

The reason is you used ADMT and didn't exclude the necessary exchange attributes. Therefore prepare-moverequest fails to merge to the existing object brought over by ADMT. The provisioning script must match 3 attributes: Proxyaddresses, mail and mailnickname. You must have all 3 attributes set in order for the script to match and merge the MEU then excluse all other Exchange attributes.

You must script the move to stop the exclusion of some core exchange attributes. The link below shows a sample script. You would then need to append the following lines.

Create a new notepad file and name it ADMTexclusion.vbs and enter the lines below.
Set objMig = CreateObject("ADMT.Migration")

objMig.SystemPropertiesToExclude = "homeMDB, homeMTA, showInAddressBook, msExchHomeServerName, msExchRecipientTypeDetails, msexchrecipientdisplaytype msExchMailboxSecurityDescriptor, msExchMDBRulesQuota, msExchPoliciesIncluded, msExchUserAccountControl, msExchVersion, mdbusedefaults"

Then run the file on your ADMT server:


C:\Windows\SysWOW64>cscript c:\admin\scripts\admtexclusion.vbs

Migrating All User Accounts
http://technet.microsoft.com/en-us/library/cc974368(WS.10).aspx


Another option is to use ADMT to bulk move\seed them without any attributes, then use either powershell or old friend ADModify to bulk update the proxyaddresses, mail and mailnickname. Typically you would use %'samaccount'% as the variable to fill in these attributes.

Finally you can just provision the account using Prepare-MoveRequest.ps1 first then use ADMT.



James Chong
MCITP | EA | EMA; MCSE | M+, S+
Security+, Project+, ITIL
msexchangetips.blogspot.com

29 Comments:

Blogger Liran Zamir said...

I started up by performing ADMT without this script and the result was the creation of a disabled account which mean it did not merge properly.
Later on I used the script you provided, and as a result when running new-moverequest I got "The critical preperty 'LegacyExchangeDN' is missing in the MailUser". I saw that you also talk about it in a different post, however I find it irresponsible of you to originally post the exclude script as it causes more issues than helping.
Can you provide an additional script to roll back this change ?

5:14 AM  
Anonymous Anonymous said...

@ Liran Zamir:
Woah strong choice of words. If you knew what to do you would not be on this site. Additionally, there is an implied risk of running untested scripts.

7:41 AM  
Anonymous Klaus Thorn said...

Dear James Chong, thank you very much, your advice helped me out of a dead end.

Sad that the script does not come with documentation or error messages which highlight these crucial details. Even the documentation for the script that Microsoft provides online is not helpful in preventing this pitfall.

6:11 AM  
Blogger xjd7410@gmail.com said...

20151012 junda
Abercrombie & Fitch Factory Outlet
michael kors outlet
coach factory outlet
michael kors outlet
Louis Vuitton Handbags Factory Store
louis vuitton
Cheap Jordans For Sale Wholesale
oakley sunglasses,oakley vault,prescription sunglasses,polarized sunglasses,aviator sunglasses,spy sunglasses,oakleys,oakley canada,cheap oakley sunglasses,oakley frogskins,oakley holbrook,cheap sunglasses,wayfarer sunglasses,oakley standard issue,fake oakleys,oakley glasses,oakley.com,oakley prescription glasses,oakley goggles,sunglasses for men,oakley gascan,oakley store,oakleys sunglasses
uggs australia
ugg boots
cheap ugg boots
michael kors handbag
Coach Factory Outlet Online Sale
Louis Vuitton Outlet USA
Air Jordan 4 Toro Bravo
canada goose outlet
toms outlet
New Louis Vuitton Handbags Outlet
Michael Kors Handbags Outlet Deals
michael kors outlet
Wholesale Authentic Designer Handbags
Ugg Boots,Ugg Boots Outlet,Ugg Outlet,Cheap Uggs,Uggs On Sale,Ugg Boots Clearance,Uggs For Women
cheap jordan shoes
michael kors outlet online
louis vuitton handbags
Coach Factory Outlet Private Sale
true religion jeans
Louis Vuitton Bags On Sale
Jordan 13 Shoes For Sale
Ralph Lauren Outlet Clothing

6:20 AM  
Blogger xumeiqing said...

151210meiqing
nike air max
prada uk
cheap oakleys
jordan shoes
ugg slippers
coach factory outlet
louis vuitton purses
louis vuitton
fitflops sale clearance
instyler curling iron
louis vuitton outlet
polo ralph lauren
michael kors outlet
air jordan retro
gucci outlet
jordan 11
timberland boots
oakley sunglasses
coach outlet
jordans for sale
michaek kors outlet
michael kors
coach outlet store online
hollister uk
jordan concords
coach outlet
uggs sale
michael kors handbags
cheap soccer shoes
louis vuitton
abercrombie
jordan retro
michael kors outlet clearance
louis vuitton outlet
uggs clearance sale outlet
oakley sunglasses
michael kors outlet online
louis vuitton
cheap uggs
ray-ban sunglasses

6:17 PM  
Blogger raybanoutlet001 said...

ralph lauren
michael kors outlet store
cheap nfl jerseys wholesale
michael kors handbags clearance
ralph lauren outlet online
san antonio spurs
hollister clothing
cardinals jersey
michael kors handbags
instyler max 2

7:05 PM  
Blogger Unknown said...

birkenstock shoes
cheap jordan shoes
the north face jackets
adidas nmd
ray ban outlet
nhl jerseys
cheap jordans
oakley sunglasses outlet
prada sunglasses
supra footwear
2017.4.6chenlixiang

11:39 PM  
Blogger Unknown said...

kobe shoes
fitflops sale clearance
longchamp handbags
air yeezy
longchamp handbags
cartier bracelet
jordan shoes
michael kors outlet online
jordan shoes
links of london

8:38 PM  
Blogger Unknown said...

fitflops
ugg boots
jordan shoes
ray ban sunglasses outlet
coach outlet
michael kors outlet
giants jersey
christian louboutin shoes
kate spade sale
oklahoma city thunder jerseys

2:30 AM  
Blogger Unknown said...

ugg boots
gucci shoes
pandora outlet
nike air max 90
prada outlet
hermes belts
ralph lauren outlet
jordan 4
nike store
moncler jackets
20170823

11:54 PM  
Blogger Unknown said...

ray ban sunglasses cheap
the north face jackets
ugg australia
longchamp outlet
louis vuitton handbags
ugg australia boots
canada goose canada
uggs outlet
michael kors väska rea
true religion outlet
2017.9.2chenlixiang

8:41 PM  
Blogger Unknown said...

cheap jordan shoes
coach outlet
supreme clothing
ray ban sunglasses
longchamp handbags
new york knicks
nike factory outlet
nike shoes
nike blazer
polo ralph lauren

11:13 PM  
Blogger raybanoutlet001 said...

zzzzz2018.4.17fitflops
coach outlet online
longchamp handbags
true religion outlet
christian louboutin shoes
kate spade outlet
jordan shoes
cheap ray bans
oakland raiders jerseys
nike air huarache

11:04 PM  
Blogger Unknown said...

zzzzz2018.7.14
nike outlet
pandora jewelry
true religion outlet
canada goose outlet
moncler online
jordan shoes
michael kors outlet online
christian louboutin shoes
kate spade outlet online
fitflops sale clearance

10:27 PM  
Blogger Unknown said...

ugg outlet
supreme clothing
coach outlet
converse trainer
christian louboutin shoes
ugg boots
pandora jewelry
canada goose outlet
ugg boots
off white clothing

11:18 PM  
Blogger jjjjjjjjjjjjj said...

ralph lauren uk
caterpillar boots
reebok outlet
lebron 14
timberland shoes
adidas nmd
yeezys
fila
huaraches
adidas store

11:23 PM  
Blogger Syakira Khumaira Azzahra said...

This article is very useful, thank you for sharing. And allow me to share articles too, it's about health and treatment. God willing

cara menghilangkan kista bartholin
cara mengobati infeksi ginjal
pengobatan paru-paru basah secara alami
obat tipes tradisional untuk anak dan dewasa

1:56 AM  
Anonymous mimi said...

Thank you for sharing. I have been searching for it for a long time. It is fortunate to see it from your article. If you want to watch movies, go to my site YesMovies

1:08 AM  
Blogger TechLovrz said...

Status4Everyone
here
gaana.site

9:15 AM  
Anonymous Anonymous said...

movies123. bud absence four zyrtec publisher zyrtec edward

2:32 AM  
Anonymous Anonymous said...

movies123. Morazán, Thunderbird ‘12, Mentora para el

11:08 PM  
Anonymous Anonymous said...

123movies. Esiste la storia di un uomo che cade dall’ultimo

12:51 AM  
Blogger yanmaneee said...

supreme hoodie
balenciaga trainers
balenciaga sneakers
birkin bag
christian louboutin shoes
curry shoes
yeezy boost 350
kd 10
adidas ultra boost
golden goose

12:52 AM  
Blogger Bum Bollywood said...

Hey guys, you can also checkout my blog for amazing post.
Here I, am sharing link of some of best posts of my blog. Bum Bollywood

Pushpa Full Movie Download in Hindi Filmyzilla

11:24 PM  
Blogger News Khabri said...

Very nice post. I just stumbled upon your blog and wished to say that I have truly enjoyed browsing your blog posts.Newskhabri

3:29 AM  
Blogger Filmywiki : All Movies Updates said...

filmywiki

2:56 AM  
Blogger Filmywiki : All Movies Updates said...

Sharddha Kapoor Biography

2:57 AM  
Blogger Bum Bollywood said...

Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agian
name Bum Bollywood


RRR Full Movie Download in Hindi 480p Filmyzilla

Irudhi Pakkam Full Movie Download Tamilrockers Isaimini Hd Quailty 720p 1080p

Jersey (2021) Shahid Kapoor Full Movie Download Filmyzilla Hd print 720p

Atrangi Re Movie 2021 Dual Audio Full Hd 480p, 720p HD, 1080p Download Filmyzilla

83 (2021) Full Movie Download Filmyzilla | Eightythree Movie 123mkv isaimini

Spider-Man No Way Home Full Movie in Hindi Download Filmyzilla Hd Print 480p, 720p

2:54 AM  
Blogger periyannan said...

This post is very unique and informative for all. Impressive information you share in this. Keep it up and keep sharing.

artificial intelligence internship | best final year projects for cse | internship certificate online | internship for mba finance students | internship meaning in tamil

9:03 PM  

Post a Comment

<< Home

xml:lang="en" lang="en"> MS Exchange Tips: Cannot create mail enabled user because an existing object with type already has the same proxy addresses/MasterAccountSid.