Export-Mailbox for a list of users in a specified OU

Hi,
I am going to implement outlook autoarchive policy for a list of users in a specific OU or CSV.
I want to export their mailboxes through Export-mailbox cmdlet to PST for a safer side before applying this policy.
I also have a requirement to export the last year mails of some users to PST(another query) and then remove those mails from mailbox, kindly help if this could also be done by taking the input from a OU or a csv file.
Regards
Supreet Singh

Export-Mailbox : Error was found for (USERNAME ALIAS) (USERNAME_EMAIL) because: Error occurred in the step: Moving messages. Failed to copy
messages to the destination mailbox store with error:
MAPI or an unspecified service provider.
ID no: 00000000-0000-00000000, error code: -1056749164
At line:1 char:78
+ Get-Mailbox -OrganizationalUnit "OU NAME" | Export-Mailbox
  <<<< -PSTFolderPath F:\pstexports
This is what I get when I run the command
get-mailbox -OrganizationalUnit "OU NAME" | Export-Mailbox -PSTFolderPath F:\pstexports
Can anyone help me get around this?

Similar Messages

  • Export-Mailbox for legal discovery remove empty folders

    Hi Everyone,
    I'm having a bit of an issue with running an export mailbox search for a legal discovery that we need to perform. Basically we need to find any messages sent from two specific addresses to anyone within our company and export them to a mailbox for our legal
    team to review. The problem that i'm running into is that the export-mailbox command copies the folder structure for each mailbox that it searches to the target mailbox. When the legal team attempts to open the mailbox its taking an extremely long
    time for the target mailbox to open. 
    Is there any way to run the export-mailbox command and have it not copy the folder structure for users that have no messages related to the search ? I haven't been able to find anything about a command line option to not create empty folders so i'm assuming
    this isn't a built in feature. If not has anyone had to deal with this issue before, if so what solution did you use to delete the empty folders folders in the target mailbox ? 
    We are running Exchange 2007 SP1

    Hi Ragharam,
    Thank you for the response. Unfortunately the command cannot be limited to just the inbox as i must search deleted items and any folders that the users created as well as the inbox. Pretty much i have to search every where for any existence of
    these messages.  I'm running a command that is similar to what you listed above and the export is working the problem is that we have roughly 5000 user mailboxes that we need to search. Since the export-mailbox command creates a folder for each
    user that has been searched in the target mailbox and that folder contains each users folder structures the resulting mailbox or PST file pretty much just hangs the Outlook client as soon as its opened. 
    My hope is that there would be some way to only create folders for users that have matches to the search filter and not for the users that do not match or some way to delete the empty folders within the mailbox without having to open it. 

  • How to find T-codes for a list of User exits

    Hi All,
    We have been provided with the list of user exits found in the system. I need to find the T-codes where these user-exits have been used.
    Can anyone provide pointers for this?
    Thanks and Regards,
    Sridevi Sridhar

    use logic of the program....
    *& Report  ZCG_USER_EXIT_FIND
    *&    Utility program to find out the User Exits within a transaction
    REPORT  ZCG_USER_EXIT_FIND.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.

  • How to export song for a pro tools user

    how do i export an audio instrument track for a pro tools user? i have a song with audio track and audio instruments and i was wondering if there was a way i could export the audio instruments seperately
    iMAC G5 isight   Mac OS X (10.4.6)   M-audio keystation 49, m-audio firewire 4-10, logic pro 7, yamaha monitors

    this is very easy now in logic. look in file -> export and there are a range of options.
    export region as audio file, and export tracks as audio files. if you do this (as opposed to OMF which is really only best for audio) then it is worth making sure that the regions start at the same point. it might be worth checking to see if exporting tracks as audio files will do this automatically for you - i have not used the feature.
    once the tracks have been exported (and incidentally they will print all the plug-in processing you have applied to them in the channel-strips) then simply import them into PT and start working. obviously they should all start at the same position.

  • How to schedule a WebI Report for the list of users that it contains in it

    I have a WebI Report in BOXIr2 which contains the list of Employees Details (Employee Name, Mail ID, Emp Code) who had missed their timesheet for the week, Please let me know Is their a way that i can send mail notification through BO report Scheduling to the list of Employees who are listed in the Report, Thanks in advance !

    Hi,
    in BO XI 3.1 you can do this using a publication object. Unfortunately in XI R2 this works only for DeskI documents. You may want to consider using the BOE SDK for this. I must admit that I do not have a specific solution for you a workflow may look like this:
    1) Schedule your WebI with the user list to be exported on a network drive
    2) Build a java program that reads in the file, connects to the BOBJ repository and schedules the report using the recepient list.
    Regards,
    Stratos

  • How to Generate a Report for a list of Users in Shared Services.

    I am using Hyperion 9.3.1 version.
    I have around 120 (MSAD) users in shared services and now i want to generate a report which tells what all access is given to a particular application for these users. Can anyone let me know the steps how to acheive this.
    Regards,
    Vijay Krishna.

    Hi,
    Have you tried generating a provisioning report in Shared Services, have a read of :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_cas_help/provrep.htm
    If that doesn't suit your requirements then you could always have a look at using CSSImportExportUtility to export provisioning to a csv file. The utility is located in hyperion\common\utilities and has a pdf on instructions how to use it.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • When exporting mailboxes in Mavericks no mail gets exported...only the folder. This is only on my Gmail account not my iCloud account.

    I archive client mail folders for legal purposes. I have been exporting mailboxes for quite some time with my Gmail account all email within the mailbox would export. Since I have upgraded to Mavericks...the eport mailbox function will now only export the folder (Mailbox) however no email will export.
    I have tried exporting my iCloud inbox and icloud exports just fine. Could this be more of the Gmail issue that some of us have been experiencing since upgrading to Mavericks? 

    This does look like a bug, though the workaround I'm using is to create a new mailbox and use 'On My Mac' as the destination. Then, select all the messages in the gmail mailbox folder that you need to archive and drag them into the new one you've created (dragging the enclosing folder icon will not work). This will then archive in the normal way.

  • Executable or batch script for end users to export mailbox to PST

    We are in the process of taking over a small firm and proceeding with manual migration of mailboxes from this firm , currently we do not have full access to their environment and having a hard time depending on admins of their organization dealing over
    to exporting mailboxes and then importing them back to our exchange environment,  my idea is to rather provide a executable or batch script to user's of their organization get their mailboxes exported out directly from end users  so that we do not
    have to depend on remote organization's admins for every single user out there . is there a batch script or some executable code that end users can run to have their mailbox exported out directly ? 
    Aditya Mediratta

    Seems like, this informative article would be a good approach to resolve your concern :
    http://www.msexchange.org/articles-tutorials/exchange-server-2013/management-administration/managing-pst-import-export-process-exchange-server-2013-part2.html
    Moreover if you wish, you may also give a shot to this automated solution (http://www.exchangemailboxtopst.org/) in order to accomplish this job in more easier and quicker way.

  • How to get list of Users[MailBoxes] in Exchange Server 2013 by using EWS Managed API

    Hi all,
    I need list of Users exists in my Exchange server 2013 , i.e Mail Box Users login name.
    I was  created Full Access permissions of all users to Admin user account,  to access each user Mailbox programatically 
    i need the list of Mailboxes in exchange server .
    MailBox  mailbox = new MailBox("user");
    Please share your ideas

    Hi,
    We can run the following command in Exchange Management Shell to get all user mailboxes name and export it to a .csv file:
    Get-Mailbox -ResultSize Unlimited | Select Name,Alias,RecipientTypeDetails | Export-Csv c:\Users.csv
    If you want to retrieve the list of users by using EWS Managed API, I suggest you can ask a question in Exchange Development forum for more suggestion:
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads
    Regards,
    Winnie Liang
    TechNet Community Support

  • How to create a special view for sharepoint list A and deploy this view to specific user personal view?

    How to create a public view for sharepoint list A and deploy this view to specific user personal view? Is that possible OOTB?

    Views cannot be exported or moved. Can you elaborate your requirement?
    --Cheers

  • Export 2 specific folders from users A mailbox and transfer them to user B Via Powershell

    Hi 
    i know there is a simpler method for the user to export the folder within outlook as a PST file and send it to the other user to import... but
    Is there a powershell command sequence i can use that will export folders from User A mailbox and import them into User B's mailbox remotely so they don't have to do anything.
    Many Thanks
    Gordon

    i made some progress with the following
    New-MailboxExportRequest -mailbox "User A" -includeFolders "User A\\TransferFolder" -Filepath \\server\serversubfolder\transfer.pst -verbose
    then using
    New-MailboxImportRequest -mailbox "User B" -FilePath \\server\serversubfolder\transfer.pst -TargetRootFolder "Inbox" -includefolder "Transferfolder" -verbose

  • Views for list web parts. Is there a way to allow users to change the view for a list web part without being redirected?

    Hi,
    I added a list view web part into a SharePoint 2013 page and it  is working as expected, except for one thing.
    I have enabled the option for the user to change the view for the web part. However when the user changes it, the user is redirected away from the page containing the web part, to the URL of the list itself.
    Is there a way to circumvent this issue so when the user selects a different view it updates the listing in the web part itself, rather than the user being redirected?
    Thanks in advance for the help.
    Regards,
    P.

    Hi,
    Please understand that one page can only display one view. You could find it out by observing the Address in browser when switching among different views for a list.
    If you would like to change the view of a list web part, you could go to web part propertites > Select view and configure it.
    In addition, here is a thread with similar requirement that might help:
    http://social.technet.microsoft.com/Forums/en-US/18dba190-5ee2-4b50-b005-1360d862f4ba/how-can-end-user-change-the-view-in-a-list-view-web-part?forum=sharepointgeneralprevious
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Multiple mailboxes for the same user

    I have configured mail to work with virtual domains so I can create a different mailbox for each email address but how do only allow the mail to that specific address to come through. As I don't want the local and virtual in the same mailbox.

    User A can have one mailbox associated with his ID.  You can create other "User A" mailboxes with different names and e-mail addresses as shared mailboxes and grant User A full mailbox rights and send as right.  User A can
    then connect to each one of them separately.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Multiple domain mailboxes for one AD user in exchange 2013

    I just wanted to make sure that this hasn't changed in exchange 2013 or if there's a better way to do this
    we have a few users that need an email for companyA.com and CompanyB.com. For easy separation we've decided to create a separate mailbox for each email. Right now the only way i can figure how to easily associate both mailboxes with 1 AD user is to set up
    their main email as their default mailbox, then create a shared mailbox and grant full permission for that user. Then in Outlook they have access to both accounts from 1 profile. 
    However I'm not sure how this would work for mobile access.  In Office365 connecting to 2 exchange accounts on a mobile device was pretty straight forward since each mailbox had a unique login. I know when a shared mailbox is created, a disabled user
    is created in AD, I'm wondering if i can enable that account and then the user uses that login to connect to that account through their mobile device. Or maybe theres a simpler way to accomplish this goal? 

    we have a few users that need an email for companyA.com and CompanyB.com.
    Hi Derek,
    Why not just create an additional email address for the users?
    "You can use the EAC or the Shell to add or remove an email address for a user mailbox. You can configure more than one email address for the same mailbox. The additional addresses are called
    proxy addresses. A proxy address lets a user receive email that’s sent to a different email address. Any email message sent to the user's proxy address is delivered to their primary email address, which is also known as the
    primary SMTP address or the default reply address."
    Add or Remove Email Addresses for a Mailbox
    http://technet.microsoft.com/en-us/library/bb123794.aspx
    "create a shared mailbox and grant full permission for that user"
    Do you mean a few users have a shared email address? For example:
    UserA:
    Primary(main) address: [email protected], shared address:
    [email protected]
    UserB:
    Primary(main) address: [email protected], shared address: [email protected]
    If not, you can just create an addtional address for the users.
    If you have any feedback on our support, please click
    here
    Frank Wang
    TechNet Community Support

  • List of users who have authorization for a particular transaction?

    Hi All,
    Can anyone guide me how to know the list of users who have authorization for a particular transaction?
    I need this to find out the list of authorizations that are obsolete ,when the particular trnsaction is obsolete in an Upgrade process.
    Thanks in advance.

    we can get the list of users for a particular transaction as below.
    get the tcode and place in AGR_TCODES and we get the list of roles .
    loop the roles and pass each role to AGR_USERS and we get list of users for that role.
    finally we got the list of users for that tcode.

Maybe you are looking for

  • Why are the 3 maints done twice now? Tiger 10.4.11 bug?

    I've noticed that recently in Tiger 10.4.11 the daily, weekly and monthly tasks are done twice * in the same job*. Can some of you check your Console Logs and see if you are seeing something similar to below? Makes no sense. I wonder if this is a bug

  • Pre order $10 Certificat​e & GCU

    Hi, I pre ordered battlefield hardline for the xbox one by depositing $5 the day before the release date. I came back to pick it up the next day and paid I believe a total of $50. I'm not exactly sure if the $5 deposit was applied or not but I don't

  • ICloud twice in Mail

    My iPad 2 shows my iCloud account twice in Mail.  Both accounts appear to be the same, but iCloud is only defined once in Settings -> Mail, Contacts, Calendars.  In fact, if I change the name of the account there to "iCloud 2" then it changes both in

  • Extension Builder 1.0.1 Posted

    Hi all, We've just released a new build of ExtensionBuilder, 1.0.1, to the Eclipse update site at http://cssdk.host.adobe.com/cssdk/update/ If you've already installed Extension Builder, you can get this by selecting Help > Check for Updates and foll

  • Windows 7 Media Center Not Downloading EPG listing

    I have virtually no EPG listings in WMC 7 I have tried rescan the TV Signals, deleted the epg listings directory, run the Object Store Recovery Task I've run MC Update and I've tried turning off the firewalls. The file downloads successfully accordin