Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11175
| X-Received | by 10.50.30.37 with SMTP id p5mr1239950igh.11.1446624471128; Wed, 04 Nov 2015 00:07:51 -0800 (PST) |
|---|---|
| X-Received | by 10.182.196.9 with SMTP id ii9mr2615obc.7.1446624471076; Wed, 04 Nov 2015 00:07:51 -0800 (PST) |
| Path | csiph.com!xmission!news.glorb.com!i2no3885271igv.0!news-out.google.com!z4ni45945ign.0!nntp.google.com!i2no3885270igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | microsoft.public.scripting.vbscript |
| Date | Wed, 4 Nov 2015 00:07:50 -0800 (PST) |
| In-Reply-To | <f52f2993-7282-4e39-be8b-c9638763397b@v14g2000yqh.googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=130.225.169.1; posting-account=T8_1nwoAAABZE5rX1KOusz8B8NH5TwH1 |
| NNTP-Posting-Host | 130.225.169.1 |
| References | <f52f2993-7282-4e39-be8b-c9638763397b@v14g2000yqh.googlegroups.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <778b2679-2fb7-4575-82ff-6e0e816ed1ae@googlegroups.com> (permalink) |
| Subject | Re: setting 'ExternalEmailAddress' |
| From | MichaelV <m.vorbeck.dk@gmail.com> |
| Injection-Date | Wed, 04 Nov 2015 08:07:51 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com microsoft.public.scripting.vbscript:11175 |
Show key headers only | 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
Re: setting 'ExternalEmailAddress' MichaelV <m.vorbeck.dk@gmail.com> - 2015-11-04 00:07 -0800
csiph-web