Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 3457

Create a mail enabled user account with x400 address

$
0
0

How can I add x400 address using import-csv new-mailbox powershell script?

In csv, I added a mail2 column with the following value:

X400:c=GB\;a=xxx\;p=xxxx\;s=xxxx\;g=xxxx

and run the command;

PS P:\> Import-CSV "C:\NewU.csv" | foreach {New-Mailbox -Name $_.displayName -Alias $_.sAMAccountName -UserPrincipalName $_.userPrincipalName -samAccountName $_.sAMAccountName -OrganizationalUnit $_.OrganizationUnit -PrimarySmtpAddress $_.mail -EmailAddresses @{add=$_.mail2} -FirstName $_.FirstName -LastName $_.LastNam
e -Password (ConvertTo-SecureString $_.password -AsPlainText -Force) -ResetPassw
ordOnNextLogon $false}

All works fine except adding the second x400 email address;  -EmailAddresses @{add=$_.mail2}

Please help! Thanks in advance.


Viewing all articles
Browse latest Browse all 3457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>