Importing multiple users for linked exchange accounts

This is for Exchange 2013 SP1 FYI
Ok, I am lost on this script...
I am trying to do a linked mailbox from a different forest using a CSV file. I can re-export the CSV if I need to gather other information.
Can I set all the attributes when I create the mailbox or do I need to have a separate line or script to set the attributes?
I know my import-csv is messed up but I am not sure how to fix it.
Script:
Import-Csv .\file.csv |foreach {
New-Mailbox -Database "uh-xchdb1" -Name "$_.DisplayName" -DisplayName “$_.DisplayName” -FirstName “$_.GivenName” -Initials “$_.Initials” -LastName “$_.Surname” -ExternalEmailAddress $_.EmailAddress -Title “$_.Title” -Department “$_.Department”
-OfficePhone “$_.OfficePhone” -Fax “$_.Fax” -MobilePhone “$_.MobilePhone” -Alias "$_.SamAccountName" -LinkedDomainController "dc1.domain1.com" -LinkedMasterAccount health\$_.SamAccountName -OrganizationalUnit Users -UserPrincipalName $_.UserPrincipalName
-LinkedCredential:(Get-Credential domain1\john)
csv file:
UserPrincipalName,SamAccountName,DisplayName,GivenName,OtherName,Initials,Surname,EmailAddress,Title,Department,OfficePhone,Fax,MobilePhone
[email protected],testaddev2,Test I. Addev2,Test,,I,addev2,[email protected],Sr VP,MIS,505-111-111,505-222-222,505-333-3333

Hi,
pls have a look here:Create a Linked Mailbox
I believe your exported csv is exported from account domain. And assuming the samaccountname match on both Account and resource domain. (In hosted exchange with multi-tenant environment, SamAccountName may not be unique across multi domains). You will need
to replace $_.UserPrincipalName wth resource domain name.
 -UserPrincipalName $($_.UserPrincipalName -replace '@.*', '@ResourceDomain.com')
or
 -UserPrincipalName "$($_.SamAccountName)@ResourceDomain.com"
rgds,

Similar Messages

  • Can you have multiple users for one account?

    Can you have multiple users for one account? if so how do you set it up.
    We are using it for our department and it would be great to see who created what form instead of it being all one name.

    Each person should have their own account. You can easily share the forms with other people in your department. You will be able to see who the author of the form is.
    More information on how to share :
    http://forums.adobe.com/docs/DOC-2462
    Information on how to copy a forms to a different account :
    http://forums.adobe.com/docs/DOC-1390
    Hope this helps
    Gen

  • Multiple users on a itunes account how do I avoid eveyone getting my information on icloud

    I have multiple users on our itunes account. If I switch to mountain lion and utilize icloud how do I avoid the other phones my kids and husband from getting all my stuff on their phones. I am the primary account holder when we first upgraded the phones all my contacts went to their phones and wiped out all of theirs it was a night mare so we just shut it off. It sounds like a cool idea but I dont want to mess up their contacts and information.

    You can keep everyone on your iTunes account all you have to do is have everyone create there own iCloud account. Me, my wife, and my son all have our own iCloud for our own use. I have my 3 devices linked to mine, my son has 2 linked to his and my wife has 2 also. For some reason by default the iDevice will ask you to use your iTunes account but you don't have to. You can create it right from the device itself if you want a @me account which is the way to go IMO. you can also go to iCloud.com and create it there too. We have a total of 8 devices linked to one iTunes account for purchases and everything works like a champ. Hope this helps.

  • Since  I have multiple users of my itunes account, is it possible to redeem a giftcard where only myiphone can access the redeemed money?

    Since I have multiple users of my itunes account, is it possible to redeem a giftcard where only my iphone can access the redeemed money?

    Yes, you can use another server for .ibooks format.  You can also directly email it if your system can take the size.

  • How to lock multiple user for a transcation code at same time is der any tc

    how to lock multiple user for a transcation code at same time is der any tc
    suppose i hav 15 user and i want to lock 10 user for mm02 who can i to it

    Basis can do a export and import transport, still if don't have connection between boxes.
    or
    check this
    http://www.sap-basis-abap.com/abap/copy-program-variants-from-one-to-another.htm

  • I keep getting message on Iphone and Ipad  Enter password for the Exchange account "Chris Buggy" when I try to access my personal email.

    I keep getting message on Iphone and Ipad "Enter password for the Exchange account 'Chris Buggy' " whenever I try to access my personal email account. I tried all possible personal passwords and none work. This is company issued Iphone and Ipad.

    Hi StuNYC,
    Welcome to Apple Support Communities.
    It sounds like you're seeing an alert message when opening Mail on your iOS devices. Do you have multiple email accounts setup on the devices? Take a look at the article below, it provides suggestions that will resolve most issues that  cause an alert like that to appear in when starting the Mail app.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    I hope this helps.
    -Jason

  • How to End the Error message: "enter the password for the exchange account"

    i completed configure Exchange Account on my iPhone, but still show the error message:  "enter the password for the exchange account"

    make sure you don't have 2 step verification in gmail.
    otherwise you need to follow
    Signing in using application-specific passwords
    The codes that you’ll get with 2-step verification don’t work with all applications. There are a few applications that use information from your Google Account (like the Gmail application on your phone, or Outlook) that require another type of code. These are called application-specific passwords.
    Some devices and applications that use these special passwords include:
    POP and IMAP email clients such as Outlook, Mail and Thunderbird
    Gmail and Google Calendar on smartphones
    ActiveSync for Windows Mobile and iPhone
    YouTube Mobile on Apple devices
    Cloud Print
    Installed chat clients such as Google Talk and Adium
    3D Warehouse, Sketchup, and installed applications
    AdWords Editor
    Sync for Google Chrome
    Gmail Notifier
    How to generate an application-specific password
      Unlike a verification code that you receive from your phone or through Google Authenticator, application-specific passwords are generated. You don’t have to memorize them, ever - you simply generate a new one each time you need to sign into a particular application. Follow the steps below to generate your application-specific password: 
    Visit the Authorizing applications & sites page (pictured below) under your Google Account settings.
    Under the Application-specific passwords section, enter a descriptive name for the application (label 1) you want to authorize, such as "AdWords Editor – Desktop," then click “Generate application-specific password" (label 2).
    You'll then see the application-specific password you just created (3). You'll also see the name you wrote in for the device (4) and a link to Revoke (5) -- or cancel -- the code.
    Once you click Done, you’ll never see that application-specific code again. But don't panic: You can generate a new one whenever you’re prompted for an application-specific password by a non-browser device or application -- even a device or application you’ve authorized before.
    Using application-specific passwords
    When prompted for a password when you sign in to a non-browser application or device that accesses your Google Account:
    Enter your username.
    Enter your application-specific password in the password field.
    If your application has an option to remember your application-specific password or stay signed in, you can select that option so you won’t have to generate and enter a new application-specific password each time you access your account from this application or device.

  • TS5223 can I have multiple users use one apple account?

    can I have multiple users use one apple account?

    I interpreted his post to mean that he meant multiple human users, not multiple devices.  Hopefully, he'll clarify.

  • WebTools Creating multiple users for the same User

    I had to make a few changes to a BP in SAP which will synch back into WebTools but now I am getting multiple users for the same contact. For example my user is cspehar_1 now in Webtools there are cspehar_1, cspehar_2, cspehar_3 and so on up to _8.
    This is occuring for several users in webtools.
    What causes this and how do I fix it?
    Thanks,
    Craig Spehar

    Hi Craig,
    There are two ways to cause this that I am aware of:
    1.  Change the "Business Partner Synch Contacts Field" setting after the initial synch.
    2.  Change the Web UserID on the BP contact in B1 (OCPR.U_PRX_SID).
    After that, update the user in WT  and synch. (might also happen if  you update the BP in B1)
    Since the synch is using the OCPR.U_PRX_SID to identify the contact, it will not be able to find it in B1 if the U_PRX_SID has changed.  When it does not find it, it assumes it needs to be created.  This results in a duplicate.
    The solution is to reset the U_PRX_SID back to what it was or set the synch contact field back to what it was.
    Then delete the last created duplicate contact from B1.
    There may be further data corruption issues here.  If orders/quotes/opportunities or other dependant data has synchronized referencing the duplicate user, these data will need to be correct as well.
    FYI, whatever caused this was probably at the root of your order problem as well.

  • My Ipod touch is stuck in the password screen and I can't turn it off or cancel.  The screen that it is stuck at says :enter the password for the exchange account "exchange"

    My Ipod touch is stuck in the password screen and I can't turn it off or cancel.  The screen that it is stuck at says :enter the password for the exchange account "exchange"

    Try resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears

  • I get the following message every time I open my contacts on my iphone or iPad : "Password Incorrect. Enter the password for the Exchange account "Exchange"". If I enter my password, it does not accept it. I don't even know what it means.

    I get the following message every time I open my contacts on my iphone or iPad : "Password Incorrect. Enter the password for the Exchange account "Exchange"". If I enter my password, it does not accept it. I don't even know what this means.

    http://support.apple.com/kb/ht1212

  • Table for link between Accounting document and Billing document

    Which is the table for link between Accounting document and Billing document ?
    Thanks & Regards

    Ø Go to SE16N, enter table BSAD
    Ø In the Reference Field (VBELN) enter the Billing Document no. 
    Tips:
    Ø Make sure that only those billing documents will be considered whose accounting documents actually exists
    Ø No Accounting documents will be displayed for Credits, Free of charge orders and those acc. Documents which have been cancelled.

  • HT1695 What is an Exchange account? When I open the email app I get the message "Password Incorrect. Enter the password for the Exchange account "Exchange""

    What is an Exchange account? When I open the email app I get the message "Password Incorrect. Enter the password for the Exchange account "Exchange""

    An Exchange account is an e-mail account serviced my a Microsft Exchange server... Typically a corporate e-mail account. It used to be possible to configure a free gmail account as an Exchange account, but it is no longer possible to set one up that way.

  • HT2480 I dont have an exchange account set up but my ipod touch screen says enter the password for the exchange account "hotmail"? what do i do?

    I dont have an exchange account set up but my ipod touch screen says enter the password for the exchange account "hotmail"? what do i do?

    The go to Settings>Mail>Hotmail and delete that mail account.

  • Can multiple users access 1 iCloud account for file sharing?

    I work in a team where everyone has an ios or mac device. Is it possible, if i were to create a new @me.com account, for all team members to use this as their iCloud ID and therefore be able to share documents?
    Would there be a limit as to how many users could do this?

    Ok have just spoken with Apple Support and the guy didn't fill me with confidence in terms of his knowledge.
    He stated that the max users sharing a iCloud account would be 11 (random number IMO). Also that we could only share/edit docs if we were on the same network which kind of defeats the point.
    Can anyone verify or correct me on the above?

Maybe you are looking for