Quick question about exporting email address and their alias from Exchange 2007 mailbox

Hi Everyone,
We have Exchange 2007 and 2013 servers. All users are still 2007 servers. I have a list of users around 179 out of 3000 in a CSV file. I would like to export those 179 users primary smtp and their aliases. Is it possible to achieve through any script?
Thanks in advance.
Regards,
Siva

Hello Siva,
You don't need a script for this. Information can be obtained with simple command.
$AllUsers = Get-Mailbox -ResultSize Unlimited | Select DisplayName,Alias,PrimarySMTPAddress,SamACcountName,Database,LegacyExchangeDN
$AllUsers | Export-Csv Outputfile.csv -NoTypeInformation
Try this and let me know if it helps!
if you want PrimarySMTPAddress and alias of only those users whose information on the excel sheet, then what do you have as the column name in the excel sheet which you are using to query on the server.
Considering that you are using Alias to query the server to get the details you can try below:
$Global:Output = @()
$CsvData = Import-Csv Inputfile.csv
foreach($line in $CsvData)
{$CurrentObject = $Line.AliasWrite-Host “Processing Obect “$CurrentObject “From Csv File”
–ForeGroundColor YELLOW$EmailIDJoin = ""$EmailAddresses = @()$UserInfo = "" | Select DisplayName,PrimarySMTPAddress,Alias,SamAccountName,Database,LegacyExchangeDN,EmailAddresses
$UserInfo.DisplayName = (Get-Mailbox $CurrentObject).DisplayName
$UserInfo.PrimarySMTPAddress = (Get-Mailbox $CurrentObject).PrimarySMTPAddress
$UserInfo.Alias = (Get-Mailbox $CurrentObject).Alias
$UserInfo.SamAccountName = (Get-Mailbox $CurrentObject).SamAccountName
$UserInfo.Database = (Get-Mailbox $CurrentObject).Database
$UserInfo.LegacyExchangeDN = (Get-Mailbox $CurrentObject).LegacyExchangeDN
$EmailAddresses = (Get-Mailbox $CurrentObject)|%{$_.EmailAddresses}
for($i=0;$i -lt $EmailAddresses.Count;$i++)
$EmailIDJoin += $EmailAddresses[$i].ProxyAddressString
if($i -lt $EmailAddresses.Count - 1)
$EmailIDJoin += ','
$UserInfo.EmailAddresses = $EmailIdJoin
$Global:Output += $UserInfo
#Export output to CSV File
$Global:Output | Export-Csv GlobalOutput.csv -NoTypeInformation

Similar Messages

  • Can we unlock an iphone which one locked with an email address and password.I have no idea about the email address and password for the icloud

    can we unlock an iphone which one locked with an icloud email address and password.I have no idea about the email address and password for the icloud.can any one help me about this.

    It sounds like you are talking about an iPhone that has been Activation Locked.  This article explains:
    http://support.apple.com/kb/PH13695
    If so, the iPhone can never be unlocked without the original Apple ID and password.  This is an anti-theft measure.

  • Can only access emails through OWA after migration from exchange 2007 to 2013

    can only access emails through OWA after migration from exchange 2007 to 2013, in other words unable to access mails through outlook or from other Applications services.
    needed RCA ... plz help..

    Hi,
    From your description, you can send and receive messages only when you use OWA after migration from Exchange 2007 to Exchange 2013. If I have misunderstood your concern, please let me know.
    In your case, I recommend you create a new test mailbox in your Exchange 2013 and check if you can send and receive messages on Outlook. If yes, it is recommended to create a new profile to solve this issue.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • How to export a user and their schema from one 10g database to another?

    Hi,
    I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
    thx
    adam

    If you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
    These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user test_move identified by test_move;
    User created.
    SQL> grant create session, resource to test_move;
    Grant succeeded.
    SQL> connect test_move/test_move
    Connected.
    SQL> create table test (x number);
    Table created.
    SQL> insert into test values (1);
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
    Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST_MOVE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST_MOVE
    About to export TEST_MOVE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST_MOVE's tables via Conventional Path ...
    . . exporting table                           TEST          1 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user new_move identified by new_move;
    User created.
    SQL> grant create session, resource to new_move;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
    Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing TEST_MOVE's objects into NEW_MOVE
    . . importing table                         "TEST"          1 rows imported
    Import terminated successfully without warnings.
    oracle@fuzzy:~>                                                       If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
    There are many variations on the theme ...
    You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
    And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual.

  • Move mailboxes and public folders from exchange 2007 to Exchange 2013

    1. How do i move mailboxes from exchange 2007 to exchange 2013. I have more than 1000 mailboxes.
    What is the correct way to migrate. do i need to move a single mailbox. During migration do the mailboxes get corrupted
    2. I want to move public folders from Exchange 2007 to Exchange 2013.
    I ran powershell commands and got these results please do guide me how to move to exchange 2013.and what are the shell commands
    Get-publicfolder
    Name Parent Path
    IPM_SUBTREE
    Get-publicfolder | select AdminDisplayName,FolderPath
    AdminDisplayName FolderPath
    Get-PublicFolderStatistics | select AdminDisplayName,FolderPath
    AdminDisplayName FolderPath
    exchangeV1 schema-root\microsoft\exchangeV1
    Internet Newsgroups Internet Newsgroups
    Get-PublicFolder -Recurse | fl name,replicas > c:\publicfolder.txt
    Name : IPM_SUBTREE
    Replicas : {}
    Name : Internet Newsgroups
    Replicas : {MAIL\Public Folder Storage\Public Folder Database}

    I have started moving mailboxes , i have tried moving few individual mailboxes to see how things go
    MAIL is my exchange 2007 and MAIL1 is my exchange 2013, please do refer the below result
    PS] C:\Windows\system32>Get-MailboxDatabase -server mail
    Name                           Server          Recovery       
    ReplicationType
    Mailbox Database               MAIL            False           None
    [PS] C:\Windows\system32>Get-MailboxDatabase -server mail1
    Name                           Server          Recovery       
    ReplicationType
    Mailbox Database 1460777952    MAIL1           False           None
    [PS] C:\Windows\system32>New-MoveRequest -Identity '[email protected]' -TargetDatabase "Mailbox Database 1460777952"
    DisplayName               StatusDetail              TotalMailboxSize         
    TotalArchiveSize         PercentComplete
    [email protected]          Queued                    363.6 MB (381,217,115 ...                         
    0

  • Is there a way to export photo images and their metadata from Adobe Bridge to MS excel?

    Is there a plugin, or script that allows photos and their metadata to be exported from Adobe Bridge to Microsoft excel?

    I would like to see the description with the image when it is attached to an email.  I would also like to be able to create a DVD of the images that would include the descriptions when the DVD is played back.
    For that you will need iDVD to create a slideshow of the images and then display either the Title, Description or both as shown below and then burn to disk creating a video DVD to play on a TV set:
    If you want the description on the image itself you'll need to use a 3rd party editor like one of those below or the free watermark iPhoto plugin, BorderFX.
    Some Image Editors That Support layers:
    Photoshop Elements 11 for Mac - $79
    GraphicConverter - $40
    Rainbow Painter - $30
    Imagerie - $38
    Acorn - $50
    Pixelmator - $60
    Seashore - Free
    GIMP for Mac - Free
    Xee 2.1 - free

  • I have a new email address and cannot receive from my former one.

    I keep getting a message to update my ICloud preferences.  When asked for my email address; I have to enter a different one than is on the ticket.

    go to apple id and change it first i.e. update the change   Applied is based upon an email address.

  • Sync creates duplicate email addresses and copies pictures from other contacts

    first post...
    I recently updated my 8830.  When i sync'd for the first time, it had 1300 changes to my 1300 contacts.  Each one had a picture change, but not all to the same picture, some were pictures i have downloaded, some were generic pictures.  However, I now have the wrong picture for prolly 1290 contacts that didn't have a picture before.  The picture only shows up on my phone, not in my WindowsMail where it shows the default picture.
    additionally...
    some of the changes also duplicated the email address.  I have not looked to see how many.
    ugggghhhh
    Help, please...
    Thanks
    Pro Vagabond

    Hi and welcome to the BlackBerry Forums
    I never hear this, but try this.
    If you have all the correct data in outlook, my suggestion is wipe the device (all the data is erased) and synch the device again.
    To wipe the device go to menu,  options, security options, general options, press menu, and wipe handheld.
    If I help you with any inquire, thank you for click kudos in my post.
    If your issue has been solved, please mark the post was solved.

  • Quick question about exporting to Flash

    Is there a way to get the same quality when you export a cpv
    project to Flash, as when you preview it in Captivate?
    Are changes in mouse paths, sounds, and picture quality after
    transferring normal? Or are they supposed to look exactly the same
    as they do in Captivate?
    I'd just like to rule out one or the other.

    Hi ksonta
    One would expect to see that everything survived the
    export/import process in full clarity. In a perfect world, that is.
    Unfortunately, Captivate doesn't yet "talk" to Flash as
    cleanly as we would like. You might question this by asking "Aren't
    they both Adobe products? Why not?"
    And I would fundamentally agree with you in theory. But the
    fact is, Adobe hasn't had either product all that long. Adobe
    bought Macromedia. Macromedia had Flash. Macromedia also had
    Captivate, but they bought Captivate from another company called
    eHelp. Heck, even eHelp bought the product from yet another company
    called Nexus Concepts. So Captivate has a long and colorful
    history.
    Hopefully the next version will bring us seamless and perfect
    exporting and importing from Flash.
    Currently I'm aware of an issue with Background images being
    "shrunken". Maybe the export/import process has too much hot water?
    Cheers... Rick

  • Quick question about my flash site and facebook

    I have a XML Flash template that I bought and customized to my likings, I used coda html editor to customize it, my question is how do I add the like button from face book, I went to facebook and did the steps to get my code  to plug into my website, do I use the iframe code or the XBML code they gave and is ther eanything special I need to do code wise? it is not working when I copy and paste it, thanks for anyone who can help.

    hi Chris951,
    For the PowerDVD, is the image below the same error that you're getting?
      - Link to picture
    If it is, can you try the following:
    1. After running the Power DVD 10 BD installer, close the error message and navigate to the C:\Drivers\PowerDVD 10 BD folder
    2. Right click on Custom.ini and choose Edit (this will open Notepad). From here, look for the LEGEND Dragon entry and change it to Lenovo then save. When finished, run the setup.exe and PowerDVD should now install successfully.
      - Link to picture
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • When emails arrive they arrive as email addresses and not names

    When emails arrive they arrive as email addresses and not names from my contact list.
    What gives?
    Thanks

    ok well I think I can confirm your theory by the fact that the few names that do show up are from PCs (where people's names are always entered in).
    Generally, most people enter their name in the Name field for their email account settings with the email client used on their computer, but not always. This is entirely up to the sender and is not required.
    90% of everyone else on my contact list is using mobile phones where names are not used like they are on PCs or smart phones.
    The very same applies to the email client used on a cell phone. I can remove my first and last name from the Name field for my email account settings, or I can enter Allan or ALLAN only and if I use ALL CAPS for my first name or for my first and last name, the name I've entered in the Name field will appear in ALL CAPS when the email is received. If I remove my name from the name field, my email address will appear only with all sent messages.
    This must mean that you too must have a lot of no name emails coming in right?
    Nope, because the overwhelming majority of people that send me email have their name entered in the Name field for their email account settings with the email client used on their computer for accessing the account and with the email client on their smart phone.

  • Conditional Routing of emails from Exchange 2007

    I have a requirement to be able to control the routing of emails from Exchange 2007 based upon the sender email address.
    For example, an exchange 2007 email system has 2 accepted domains, domain1.com and domain2.com.  The system uses 2 external SMTP gateways used for sending all outbound email (gateway1 & gateway2)
    If [email protected] emails [email protected] I want it to travel via gateway1
    If [email protected] emails [email protected] I want it to travel via gateway2.
    All mailboxes are on a single mailbox server cluster, and there are 2 load balanced Hub Transport servers.
    I have looked into various ways of dealing with this and have had no success.  I looked at transport rules, but I dont believe it is possible to specify the next hop.  I've also looked into setting permissions on the send connectors, but it is not clear exactly what permissions I need to set, or whether it will work.
    The only solution I can see is to forward all outbound emails to a separate SMTP gateway (such as postfix) which supports this kind of functionality.  However I would rather solve the problem using Exchange.
    Any suggestions?

    This is not possible natively in Exchange but you can create your own transport agent and hook it with Exchange to configure conditional routing. You may try posting a query in Development forum to get help from developers on writing a transport agent.
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads
    Here is a great step-by-step example in that direction, not exactly what you are looking for but quite similar to that...
    How to control routing from your own routing agent
    http://blogs.technet.com/appssrv/archive/2009/08/26/how-to-control-routing-from-your-own-routing-agent.aspx
    Amit Tank | MVP – Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com

  • HT5312 what about if you have added a rescue email address and verifyed it and the forgot your security question thing still doesnt show because i dont no my security questions ???????????????????????

    what about if you have added a rescue email address and verifyed it and the i forgot my security questions still doesnt show up and i dont no the answers !?!?!?!?!?!?!?! what do i do then because i dont want to phone up !?!?!?! please help !!??!?!?!

    If you have just added an address to your account then it will be an alternate email address - a rescue email address can only be added by answering 2 of your questions. You will need to contact iTunes Support or Apple to get the questions reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use, or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • I no longer have access to the email address that is stipulated as my rescue email address and I cannot remember the answers to my security questions. Please advise how I go about changing / updating the answers to the security questions.

    I no longer have access to the email address that is stipulated as my rescue email address and I cannot remember the answers to my security questions. Please advise how I go about changing / updating the answers to the security questions.

    Contact iTunes Support:
    http://support.apple.com/kb/HT5699?viewlocale=en_US
    or by email:
    https://ssl.apple.com/emea/support/itunes/contact.html
    Cheers,
    GB

  • TS3899 Can two people have the same email address and password on their phone?

    Can two people have the same email address and password on their phone?

    I guess so.    But the email content will mirror on both phones.
    If you are talking about your Apple ID and iCloud email, yes, it is possible, but again the phones will mirror.   You should not have the same Apple ID and iCloud both.  
    Why?
    If you explain the reason for the question we may have a solution that works for you.

Maybe you are looking for

  • How can I sync wirelessly the Calendar app.

    I've been told it's possible to sync. an application on my iMac to my iPad.   I use the calendar specifically for the event reminders that I set up on the desktop Mac when I'm at home, but it would be good if I could access this information on my iPa

  • More fields in XML structure error in Adapter Monitor

    Hi all I am getting the following error in the adapter monitor Error: Message processing failed: Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency err

  • Database Lookup ?

    Hi Guys, I have RFC-SOAP scenario working properly. I get a status code back from the 3rd party system in one of the response field and i need to map this to one of the field in RFC. The status codes maintained in the sql server database on the 3rd p

  • SEND TO COLOR SHORT CUT VANISHED

    HI All i've just clean installed my mac pro quad and the time line short cut send to color doesn't show up although it is present in the edit menu can anyone help? is this a bug in the latest update? i have reinstalled the entire suite FCS2 thanks in

  • Regarding OBIEE certification

    Hi All I'm looking for some advise on how to go about certification in OBIEE. According to information at education.oracle.com, we need to attend training courses before taking the Siebel Analytics Application Developer exam. Is there any change in t