Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11175

Re: setting 'ExternalEmailAddress'

Newsgroups microsoft.public.scripting.vbscript
Date 2015-11-04 00:07 -0800
References <f52f2993-7282-4e39-be8b-c9638763397b@v14g2000yqh.googlegroups.com>
Message-ID <778b2679-2fb7-4575-82ff-6e0e816ed1ae@googlegroups.com> (permalink)
Subject Re: setting 'ExternalEmailAddress'
From MichaelV <m.vorbeck.dk@gmail.com>

Show all headers | View raw


Den torsdag den 19. januar 2012 kl. 21.00.22 UTC+1 skrev HankC:
> I have a vbscript creating user accounts. It's pretty much:
> 
> Set oUser = oContainer.Create("user", "cn=" & my_name)
> oUser.Put "userPrincipalName", my_name & "@college.edu"
> oUser.Put "mailnickname", my_name
> oUser.Put "sAMAccountName", my_name
> oUser.SetInfo
> 
> then I shell to powershell (to create the mailbox in 2010) and call:
> 
> get-user my_name | enable-mailbox -database email01-db001
> 
> which throws the error:
> 
> WARNING: The object college.edu/Users/my_name has been corrupted, and
> it's in an inconsistent state. The following validation errors
> happened:
> WARNING: ExternalEmailAddress is mandatory on MailUser.
> WARNING: The mail contact and mail user must have a valid external e-
> mail address.
> 
> 
> I'm confused about how to assign 'ExternalEmailAddress'. The object is
> a not mail-enabled until touched by the enable-mailbox cmdlet. can i
> set the 'ExternalEmailAddress' prior to creating the mailbox?
> 
> 
> 
> 
> 
> HankC

Thanks Hank, you pushed me into the right direction here.

I know this is probably too late. But for other like me searching for a solution to this issue.
The error is thrown because the Exchange alias/mailNickname is already set for this non-mail enabled account.
You can change the alias/mainNickname attribute after adding the mailbox.

Back to microsoft.public.scripting.vbscript | Previous | Next | Find similar


Thread

Re: setting 'ExternalEmailAddress' MichaelV <m.vorbeck.dk@gmail.com> - 2015-11-04 00:07 -0800

csiph-web