locked
Export-Mailbox $user.......$Userlist = get-content D:\UserList\userlist.txt....... needs a modification -Please Help RRS feed

  • Question

  • Dear Experts,

    $Userlist = get-content D:\UserList\userlist.txt

    foreach ($user in $userlist) {Export-Mailbox $user -StartDate "23/05/2012" –EndDate "24/05/2012" –PSTFolderPath C:\temp\2usr_getlist.pst -DeleteContent}

    As Suggested by Mike Crowley in the following link I modified as per my requirement as above. here I have hiccup like all the exported contents from list of users say 50 in number are gettting stored in single PST........  :(   ...........

    Original Link and Suggestion by mike:

    http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/309158d4-c330-4054-9bcc-a2d30694ac86

    Is there a way I can create multiple PST based on UserName or Single PST with multiple folders for each listed user in Userlist.txt?

    Regards,

    Manju


    Manju Gowda

    Monday, June 4, 2012 7:19 AM

Answers

  • Hi

    Do you mean that you want to create those pst file for each user?

    If yes, In your command, the folder path will like

    –PSTFolderPath "C:\temp\$user.pst"

    Cheers

    Zi Feng


    Zi Feng

    TechNet Community Support

    Tuesday, June 5, 2012 7:24 AM
    Moderator
  •  Dear Zi,

    100%....working!

    Thanks a lot

    Regards,

    Manju


    Manju Gowda

    Wednesday, June 6, 2012 10:26 AM

All replies

  • Hi

    Do you mean that you want to create those pst file for each user?

    If yes, In your command, the folder path will like

    –PSTFolderPath "C:\temp\$user.pst"

    Cheers

    Zi Feng


    Zi Feng

    TechNet Community Support

    Tuesday, June 5, 2012 7:24 AM
    Moderator
  •  Dear Zi,

    100%....working!

    Thanks a lot

    Regards,

    Manju


    Manju Gowda

    Wednesday, June 6, 2012 10:26 AM