Creating mail enabled groups

Hello,
Is there any way to create e-mail enabled groups using the GroupWise admin
object API or do I have to use some other API?
Our client does not use distribution list but regular groups and selects a
post office in ConsoleOne.
DirXml is not an option.
Cheers
/Henrik

Hello,
I read information about the IDM driver for GW and it is stated that it uses
GW Admin API. If the IDM driver can create a DL by using the GW Admin API,
then we should be able to do the same. I have read part of documentation
from the GW Admin API and found something that might be related to DL
creation. I have pasted below some information. It is taken from document
gwadmenu.pdf from the GW Admin API page 18. Can this be used to create a DL
programatically?
Thanks,
Ionut Marin.
DistributionLists
This large collection contains DistributionList objects.
Properties
The following table lists the properties for this class, along with access
and descriptions.
Methods
DistributionList Add( String ObjName, String DN, [PostOffice PO],
[Domain Dom] )
Creates a DistributionList object with the given ObjName and DN
(distinguished name). See
the table under Remarks.
DistributionList Add( String ObjName, String DN, [String PO],
[String Dom] )
Creates a DistributionList object with the given ObjName and DN
(distinguished name). See
the table under Remarks.
DistributionListsIterator CreateIterator()
Creates a DistributionListsIterator object.
DistributionList Item( String Name, [String PO], [String Dom] )
Returns the DistributionList object with the given Name. See the table under
Remarks.
DistributionList Item( String Name, [PostOffice PO], [Domain Dom] )
Returns the DistributionList object with the given Name. See the table under
Remarks.
DistributionList ItemByDN( String DN, [String Tree] )
Returns the DistributionList object with the given DN (distinguished name).
If no Tree is
supplied, the current tree is assumed.
DistributionList ItemByObjectID( String ObjectID )
Returns the DistributionList object with the given ObjectID.
Remarks
This table applies to the above methods as noted. It shows the parameters
you can use with the
methods depending on where you obtain the DistributionLists object.
"Tommy Mikkelsen" <[email protected]> wrote in message
news:[email protected]...
> Nope......But beleave, but not sure, that the IDM driver for GW can do
> this though.....
>
>
> --
> /Tommy

Similar Messages

  • Built in Approval workflow can't send to AD univeral security mail enabled group (email recipient not valid)

    Background: SP2010 SP2 with March 2015 CU installed. Using the built-in Approval - SharePoint 2010 workflow on a library. The Approval workflow does send email to individual users when users are specified in the Approvers field instead of a group. We
    need to use a group. The workflow reports the error email recipients are not valid. I don't see anything in ULS logs. The Exchange server tracking logs do not show the emails to the AD group being processed (no evidence they are even received into Exchange,
    but all other mail from SharePoint goes through, including the workflow's email to the workflow initiator). I can send email to the AD group from Outlook and all group members get it.
    To send Approval workflow email to a mail enabled AD Universal Security group, what
    exactly are the requirements?
    Q1. Does the SharePoint\system account (aka web app pool account) *absolutely* need to have a mailbox?
    If so, I need some clarification. I saw
    http://www.spdev.info/2012/11/using-security-groups-with-workflows.html which was offered as a solution in another post. It says "To allow SharePoint to email the mail enabled security group you need to either create a mailbox for the SharePoint service
    account, or attach the email address provided in the Outbound Email Settings as an additional email alias for a mailbox." Then it says you need to do *both* - create a mailbox for service account *and* add the outbound email settings address as an alias
    in the *service account's* mailbox settings. Well, we can't do the latter. We are using a dedicated AD account with a mailbox for SharePoint mail settings purposes, and no two mailboxes can have the same alias.
    I tried adding the AD account specified in the Reply From: outbound email settings (Reply To: is set to a distribution list) to the AD group's "Message Delivery Restrictions" and UNchecking Require that all senders are authenticated (even
    though the AD account does authenticate). I tried allowing All Senders and UNchecking Require authentication (though that leaves email address open to spammers), but neither worked.
    Q2. Does the AD mail enabled group need to be synchronized via User Profile Sync?
    We currently only sync users. I do see the AD groups (we use AD groups into SharePoint groups security model) in SharePoint's People and Groups, and the mail address for the mail enabled group is *not* present in the properties. Is it a requirement to sync
    the AD groups so that the email address shows in the AD group's properties in SharePoint?
    The AD group is in a SharePoint group with Approve permissions. The individual AD group members are also in another AD group in a SharePoint group with Contribute permissions. I even placed myself in the AD group to test whether permissions issues; I am
    farm admin. All SharePoint groups are set to allow Everyone to read the group's members.
    This is driving me crazy.
    Thanks,
    Joan

    Hello Victoria,
    Thank you. I have an update. I got the workflow working. Turned out to be two separate unrelated issues:
    (1) invalid email address for recipient was because the email address of AD group was not present in SharePoint's properties for group. Also why nothing appeared in Exchange Server tracking logs; the email was never sent from SharePoint. Once this was remedied
    (explained below), the Task Assigned email was sent out to the AD group.
    (2) the Task Assigned email was rejected by Exchange for reason 550 5.7.1 RESOLVER.RST.AuthRequired. The Exchange tracking logs clearly showed this. Setting the AD group's properties Mail Flow Settings, Message Delivery Restrictions to "Only senders
    in the following list: <the domain account of the email address specified in SharePoint outgoing email Reply From setting>" and UNchecking "Require that all senders are authenticated" allowed the Task Assigned email to go through.
    Answer to Q1: It is not required for System account (aka web app pool account) to have a mailbox when the SharePoint outgoing mail settings Reply From email address is of a domain account of the domain SharePoint is in. That is our scenario, as I noted we
    use a domain service account dedicated for SharePoint mail. I can't speak to other scenarios. The Reply To: does not have to be the same email address; we use a distribution list. And, ever paranoid about spamming because of unchecking require autenticated
    senders, I verified that my own account could not send email to the group (Outlook provides message "You do not have permission to send to: <GroupName>").
    Answer to Q2: I did not have to sync groups via User Profile Service. What I did do, however, was remove the AD group from SharePoint, People and Groups, Groups list, and readd it. (Note: what I *literally* did was was remove the SharePoint group from all
    permissions, remove the AD group from the SharePoint group, then remove the AD group from the Groups list, readd the AD group into the SharePoint group, and reassign permissions to the SharePoint group - Read to top-level site, Read to subsite (has unique
    permissions), and Read, Approve to the subsite library with the workflow. In order to start clean. When I readded the AD group to the SharePoint group, it came in with an email address; email address now shows in the group's SharePoint properties. I noticed
    that the format was GroupName instead of Domain\GroupName. (I had originally created the AD group as a Global Security group, added it to a SharePoint group, *then* (after I found out about that requirement when first troubleshooting workflow) converted it
    to Universal and mail enabled it.
    I suppose, would syncing groups would fix this issue of SharePoint not updating AD group changes?
    Additional note: I first gave the AD group Read to the library directly instead of giving Read to the SharePoint group, tried the workflow, and the email was sent. I then removed the AD group's direct permissions to the library and added the SharePoint group
    to the library and that also worked. So I was able to use the AD group in SharePoint group (I had read in one post that would not work).
    Thanks,
    Joan

  • SharePoint 2010 email enabled groups do not deliver messages to group members

    I configured my SP2010 farm to send and receive email propperly.  How do I know this?
    Because I receive alerts from SharePoint all the time.
    Because I can email enable a library and I can send documents to it successfully
    Because I can look at AD and see that the contacts have been created in the appropriate OU
    So the problem is only with the SharePoint groups and corresponding AD Distribution List.
    I can assign an email addres to a SharePoint group from the SP interface
    I can verify that the Universal Group is created in AD as expected
    BUT, email sent to the group email address is not sent to the members of the group. I also know this doesn't happen because the distribution list in AD has no members.  If I add a member to it manually from the AD Computer and Users console then the
    member get the message.
    The bottom line is that SharePoint is not pupulating or updating the Distribution List in AD as it should. 
    I can rule out permissions because the the DL is created and the FARM Account and APP Pool account both have FULL Control over the OU where those contacts and Groups are created.
    Does any one have a light to shed on this?
    Thanks a lot,
    Fernando

    Great article here:
    http://joyknows.wordpress.com/2011/01/12/sharepoint-alerts-not-working-for-group-recipients/
    Unchecking “Require that all senders are authenticated” on the mail enabled group in Exchange Management Console, allowed Alerts to come through to AD groups using
    SharePoint.
    I struggled with this but the steps in the post resolved it for me.
    Thanks.

  • Exchange 2013 Mail Enable Existing Security Groups

    Hello,
    I can't seem to find how to mail enable an existing Security Group in Exchange 2013.  Does anyone know how to do this?  I have created them as Universal Security Groups in Active Directory.  I see that if you create them from the Exchange
    Admin Center, it will work, but I have a ton of groups with very complicated memberships that exist in AD and I would prefer not to delete them, recreate them, and adjust membership.
    I looked for a cmdlet that would let me do this, but I can't seem to find one.
    Does anyone know how to Mail Enable an Existing Group from Exchange 2013?
    Thanks

    Hello Stewart,
    If these groups are universal security groups, you can just follow Martina's suggestion to do that.
    Thanks,
    Evan Liu
    TechNet Subscriber Support in forum
    If you have any feedback on our support, please contact
    [email protected]
    Evan Liu
    TechNet Community Support

  • Work email field not filling in for mail enabled security groups in sharepoint

    I've recently been trying to setup alerts to send to mail enabled security groups on our sharepoint site.
    I've created universal mail enabled security groups for this purpose, and populated them with users, and then set those in the alert field, but no one is getting alerts.
    After a lot of investigation, I've found that this is likely because the security groups listed under sharepoint in the people and groups section don't have work email fields filled in. Theres a couple of groups that work which do have this field filled
    in, but everything created recently is missing this. I can't seem to set this field up to be editable instead of importing from AD either. I've confirmed the AD import is working fine, all user details and work email fields are filled out correctly, it is
    only the security groups that are having problems.
    Does anyone have any experience with this?

    As per your description I assume that individual user gets email alert, right ?
    If no then go to central administration > operation > timer job definitions > “web application” view > select your web application in the menu bar to check if Immediate alerts working fine
    If not, please run the following operations:
    stsadm -o setproperty -propertyname alerts-enabled -propertyvalue false -url http://...
     stsadm -o setproperty -propertyname alerts-enabled -propertyvalue true -url http://...
     stsadm -o setproperty -propertyname job-immediate-alerts -propertyvalue "every 5 minutes"  -url http://...
    And then try again.
     At last, if the issue is still there, please check your email server settings in terms of the following articles:
    http://www.sharepoint-tips.com/2007/10/email-alerts-not-getting-sent-while.html
    http://social.technet.microsoft.com/Forums/en-US/sharepointworkflow/thread/36c3b5b5-af03-4f8a-b202-b62db330c21c/
     And if individual user gets an alert then you can create cutomized alert for Sec group
     Please refer
     http://sptoolbox.codeplex.com/releases/view/8255
     hope this will help you
    Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/

  • Can't add a mail enabled public folder to allowed senders on a mail universal security group in Exchange 2010

    Hello,
    I'm trying to allow a mail enabled public folder permissions to send to a mail universal security group. In the past if I wanted to add a PF as an allowed sender I would do it via the AuthOrig setting on that group using adsiedit.  I just noticed today
    that if I add the PFs DN to that attribute of the group, nothing happens.  No matter how long I wait the PF never shows up under the allowed senders list on the group. If you try and send as the PF you get a bounce about not being allowed to send to that
    group.  If I go back into AD and check, the PF is still listed under the AuthOrig attribute.  I tried this on a few different groups and with a few different PF and I'm stumped.  I think the last time I had to update this setting on a group
    was before I installed roll-up 5 for SP3. 
    If I do the same test with a user, it works as it should and they show up in the allowed senders list.  
    If I take a group that isn't restricted to specific senders and add a PF DN to the AuthOrig attribute of the group, the button in the message delivery restrictions for that group in the EMC will change from all senders to only senders in the following list,
    but the PF wont be listed in the box of allowed senders.  If I remove it from the AuthOrig attribute the group will change back to allow all senders.  It's really weird, so any help or light you can shed on this would be greatly appreciated. 
    -Mark

    Hello,
    I check many threads and articles, but there is no related information to verify the issue.
    If your purpose is that adding a mail-enabled public folder to allowed senders on a distribution group, there is a workaround method. You can create a new distribution group, and then add the public folder to the new distribution group, and add
    the new distribution group to the Only senders in the following list field of the target distribution group.
    Here is an article for your reference.
    http://support.microsoft.com/kb/2746885
    Cara Chen
    TechNet Community Support

  • Not able to set security group without mail enabled as site collection admin using powershell in sharepoint online site - office 365

    not able to set security group without mail enabled as site collection admin using powershell in sharepoint online site - office 365?
    Any idea?

    after few days test in my lab, I can see that only email enabled group can be added as site collection admin using POWERSHELL.
    hope this helps who stuck like me!! :-)

  • Creating a new group in Mail

    Is there an easy way to create a new group in mail (or I guess it's really the Address book) from an email I already sent  to a group of people. I don't want to copy each name one by one if it's not necessary.  Thanks, Jack

    Each email address in the group is put in the To: field automatically when you put them all in the BCC field when composing the email. Nobody sees anything except their own email address.
    I think you are mistaken there, Golden. If the To: field is blank the recipients in the Bcc field will see the To: as undisclosed-recipients - if they get anything at all; some ISPs will reject a message with a blank To:. I would agree with putting the target recipients in the Bcc, but when doing this I usually put my own address in the To: field.
    AK

  • Enable group mailing list in Server.app not working

    Hello everyone,
    I have been trying to enable a new (?) feature of Server.app : "Enable group mailing list". Until now, it does not work for me. When I try to send an email to the group [email protected], Mail tells me that the smtp server cannot send my message. Here is what I see on the server's /var/log/mail.log file :
    Sep 10 16:55:54 testserver01.pretendco.net postfix/smtpd[2311]: NOQUEUE: reject: RCPT from testclient01.pretendco.net[10.1.101.10]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<testclient01.pretendco.net>
    Sep 10 16:55:54 testserver01.pretendco.net postfix/smtpd[2311]: disconnect from testclient01.pretendco.net[10.1.101.10]
    It is interesting to note that group mailing list aren't even mentioned in the Mac OS X Server Advanced Administration Guide :
    http://help.apple.com/advancedserveradmin/mac/10.8/#apd9430d30c-5796-4a20-a8f9-1 20638938942
    Does any has any good/bad experience with group mailing lists under Mountain Lion Server ? Any advice ?
    Thanks a lot !

    Hello Mark23 and thanks for your help !
    The log says nothing particular when I (un)set the "Enable Group Mailing List Option". The only difference I see is a line saying mail_groups[127]: sleeping for: 1 hour(s). I have no idea what this means exactly. Googling it did not help me much either.
    I post the /etc/aliases file below. Interesting : every time I (un)set the "Enable Group Mailing List" option, the /etc/aliases last access time changes. But the md5 hash of the file stays the same.
    I guess that the "sudo newaliases" uses /etc/aliases to construct the binary database file /etc/aliases.db ? It seems that this script is run every time I (un)check the option since the access time of *both* /etc/aliases and /etc/aliases.db are changed to the current time.
    Do you have any other option checked ?
    Here is my /etc/aliases (I removed the blocks of comments at the beginning and at the end):
    # Person who should get root's mail. Don't receive mail as root!
    #root:                    you
    # Basic system aliases -- these MUST be present
    MAILER-DAEMON:          postmaster
    postmaster:          root
    # General redirections for pseudo accounts
    bin:                    root
    daemon:                    root
    named:                    root
    nobody:                    root
    uucp:                    root
    www:                    root
    ftp-bugs:          root
    postfix:          root
    # Put your local aliases here.
    # ==== Begin auto-generated section ========================================
    # This section of the aliases file is auto-generated by server admin tools
    # Please do not edit this section or your modifications will be lost
    # === End auto-generated section ===========================================
    # Well-known aliases
    manager:          root
    dumper:                    root
    operator:          root
    abuse:                    postmaster
    # trap decode to catch security attacks
    decode:                    root

  • TS3899 My iPhone & iPad mail is locked - Press mail app, the screen starts mail, freezes and bounces back to main menu. The fault occurred whilst opening a draft email created in the 'Mail 2 Group' app. Hard reset/reset all/restore backup have no effect -

    I installed the Mail 2 Group App on my iPAD, created an email which I saved to the 'Draft' folder, with something over 300 of my contacts in the bcc. On returning to this email, again in my iPad, the screen locked in mail for a few seconds and bounced bak to the main menu. This repeated on my iPhone, on which I have been carrying out my own checks - this includes deleting the Yahoo account, hard reset (red cross and two buttons), restoring a backup and Reset All in settings.
    I'm stuck !!

    Sending a message with that many addressees may have required more RAM than was available. You can clean up RAM as follows:
    Double-press the HOME button
    Kill each app by flicking its screen image up
    When all apps except the Home screen are closed press HOME
    Wait about 2 minutes for the shutdowns to finish
    Turn the phone off (hold the SLEEP button until "slide to power off" appears, and do so)
    Wait another minute
    Turn the phone back on by holding the SLEEP button until an Apple logo appears
    Now try to send the mail again. Note that you may have an unrelated problem if this works: Many ISPs (Yahoo included) limit the number of email recipients for a single message as a way to combat spam.

  • How to change mail-enabled security group to security group

    Hi,
    As a test I have configured on the properties page of a security group an email adres. By doing this converted a security group to a mail-enabled security group. Also this group has been transferd to Office 365. But after testing I want to make the distribution
    groups on the Exchange in Office 365. So I deleted the emaila dres of the security group, but it still synchronized to Office 365 as a mail-enabled security group. How can I change in AD the mail-enabled security group to a security group?
    Thanks in advance

    Hi StijnS,
    For the O365 question there are Office 365 technical forums available at
    http://community.office365.com/en-us/f/default.aspx.
    The related article:
    Office 365 Forum Assistant
    http://blogs.technet.com/b/neilhobson/archive/2011/09/20/office-365-forum-assistant.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Provisioned user in exchange from OIM created as Mail Enabled User

    Hi,
    I have provisioned a user from OIM to exchange and the user is created as MAIL ENABLED RECEPIENT in the exchange instead of MAIL BOX ENABLED RECEPIENT .The difference between both is like the MAIL BOX ENABLED user will be having a seperate button(MAILBOX RIGHTS) in the exchange advanced tab and also he has exchange features tab.
    Is there any field in OIM which differentiates both MAIL ENABLED and MAIL BOX Enabled user.
    When i see the tabs of the MAIL ENABLED USER in the exchange i'm able to see just alias fields in one of the tabs but the MAIL BOX ENABLED user is having even the mail store field.
    When i googled for the difference between MAIL BOX enabled and MAIL Enabled i could see like the user created directly with exchange is getting MAIL BOX enabled and any third party user or different domain user wont get this MAIL BOX enabled instead he will be MAIL ENABLED
    I want the user to be MAIL BOX enabled when he is provisioned from OIM.
    Please update if any one has come across this type of issue.

    hi Rajiv,
    thanks...
    i have run the AD Organisation lookup Recon and have given the following parameters
    Lookup Search Filter:     (|(objectclass=OrganizationalUnit)(objectclass=container))
    Search Base:     DC=<domain_name2>,DC=<domain_name1>,DC=com
    Recon Type:     Update
    IT Resource Name:     ADITResource
    AttrName For Decode Value In Lookup:     distinguishedName
    AttrName For Code Value In Lookup:     distinguishedName
    Lookup Code Name:     Lookup.ADReconciliation.Organization
    Configuration Lookup:     Lookup.AD.Configuration
    But still theres no value for Organisation Lookup in process form for provisioning the user. what could be the cause for the same?
    Also i was testing if the connector is installed properly by using the testing utility. i used the following command to run it : . runADtest.sh 2
    But i got the following error.
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/thortech/xl/integration/ActiveDirectory/test/ADTestClient
    Caused by: java.lang.ClassNotFoundException: com.thortech.xl.integration.ActiveDirectory.test.ADTestClient
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: com.thortech.xl.integration.ActiveDirectory.test.ADTestClient. Program will exit.
    Please help me for this also.
    Edited by: 827805 on Feb 9, 2011 4:11 AM

  • Exchange 2010 Mail Enabled Distribution Group Won't Receive from External Address

    Let me pre-empt the usual first response: yes, I've unchecked "require that all senders are authenticated" on the Message delivery Restrictions properties of Message Delivery Restrictions. I cannot get a message from an external mail server to
    send to an internal mail-enable distribution group. It's working internally. I've checked our ironport and the message is being sent to exchange (at least I think it is).
    How can I troubleshoot this?!
    tfgeorge

    Ironport is definitely sending this email to exchange. Please read:
    06 Jun 2011 08:53:20 (GMT -05:00)
    Protocol SMTP interface Main Interface (IP Gateway IP) on incoming connection (ICID 17720578) from sender IP 65.54.190.154. Reverse DNS host bay0-omc3-s16.bay0.hotmail.com verified yes.
    06 Jun 2011 08:53:20 (GMT -05:00)
    (ICID 17720578) ACCEPT sender group UNKNOWNLIST match sbrs[-1.0:6.0] SBRS 3.0
    06 Jun 2011 08:53:20 (GMT -05:00)
    Start message 2136865 on incoming connection (ICID 17720578).
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 enqueued on incoming connection (ICID 17720578) from
    [email protected].
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 on incoming connection (ICID 17720578) added recipient ([email protected]).
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 contains message ID header '<[email protected]>'.
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 original subject on injection: TEST
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 (1471 bytes) from
    [email protected] ready.
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 matched per-recipient policy DEFAULT for inbound mail policies.
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 scanned by Anti-Spam engine: CASE. Interim verdict: Negative
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 scanned by Anti-Spam engine CASE. Interim verdict: definitely negative.
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 scanned by Anti-Spam engine: CASE. Final verdict: Negative
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 scanned by Anti-Virus engine Sophos. Interim verdict: CLEAN
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 scanned by Anti-Virus engine. Final verdict: Negative
    06 Jun 2011 08:53:20 (GMT -05:00)
    Message 2136865 queued for delivery.
    06 Jun 2011 08:53:20 (GMT -05:00)
    SMTP delivery connection (DCID 1658840) opened from IronPort interface 100.100.100.100 to IP address 100.100.100.100 on port 25.
    06 Jun 2011 08:53:20 (GMT -05:00)
    (DCID 1658840) Delivery started for message 2136865 to
    [email protected].
    06 Jun 2011 08:53:21 (GMT -05:00)
    (DCID 1658840) Delivery details: Message 2136865 sent to
    [email protected]
    06 Jun 2011 08:53:21 (GMT -05:00)
    Message 2136865 to
    [email protected] received remote SMTP response '2.6.0 <[email protected]> [InternalId=919833] Queued mail for delivery'.
    tfgeorge

  • Create a mail enabled user account with x400 address

    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.

    You are a star! Thanks Steve. For people who is having the same problem, the example contents of my table:
    FirstName
    Taro
    LastName
    Suzuki
    displayName
    suzuki taro 
    sAMAccountName
    tsuzuki
    mail
    [email protected]
    mail2
    X400:c=GB;a=xxx;p=xxxx;o=xxxxx;s=suzuki;g=taro
    password
    p@ssw0rd
    userPrincipalName
    [email protected]
    OrganizationUnit
    OU=Users,DC=xxxx,DC=com
    department
    IT
    and run the above commands will create email enabled AD accounts! with additional x.400 email address.

  • Bulk create and mail enable distribution lists

    Does anyone know of a decent script to mass create and mail enable distribution lists?  Either by excel or csv?  Thank you.

    Hi,
    You can check the repository for pre-written scripts:
    http://gallery.technet.microsoft.com/scriptcenter
    If you can't find what you're looking for there, there should at least be something you can take to start writing your own.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

Maybe you are looking for

  • [FIX] Yoga 13 auto-rotat​es to portrait on startup after Win 8.1 upgrade

    This was going to be a question post but I just stumbled across the answer on my own, so here's the solution instead! After upgrading the Yoga 13 to Windows 8.1 through the Windows Store app, and even after installing all the new drivers, I found tha

  • "Enterprise manager configuration failed due to the ff... 11 g/windows 7

    I get this error message, when using DBCA to create a database. Please help! Studying on my own for OCA. Error message : "Enterprise manager configuration failed due to the following error - Listener is not up or database service is not registered wi

  • Problem in business service

    hai, i have created a simple idoc to file application. i have got a problem in technical routing and the error category is "outbinding", error ID id "CO_TXT_OUTBINDING_NOT_FOUND" the sender service is not one which i 've created.  it is displaying th

  • Converting SVG's to PNG's

    Hi So I'm trying to convert all these SVG's to PNG's via ImageMagick. If I'm not wrong, the command is 'convert -define /path/to/icon.svg /path/to/icon.png'. Well that takes a long time with all those icons in yasis, so I thought that a script would

  • Check status

    Hello all, While checking the status of earlier created shopping carts, No shopping cart is visible in the search. However  bid invitation  is working smooth. What to do? Regards, Vivek