+ Post New Thread
Results 1 to 5 of 5
Enterprise Software Thread, Exchange 2010 New-MailboxExportRequest in Technical; Hi, Using the New-MailboxExportRequest cmdlet how do i empty the source mailbox please? Thanks...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    13,875
    Blog Entries
    8
    Thank Post
    728
    Thanked 1,367 Times in 1,197 Posts
    Rep Power
    362

    Exchange 2010 New-MailboxExportRequest

    Hi,

    Using the New-MailboxExportRequest cmdlet how do i empty the source mailbox please?

    Thanks

  2. IDG Tech News
  3. #2

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    1,909
    Thank Post
    1
    Thanked 300 Times in 290 Posts
    Rep Power
    70
    You cant, you will have to use the search-mailbox with the -deletecontent zwitch as a seperate cmdlet.

  4. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    13,875
    Blog Entries
    8
    Thank Post
    728
    Thanked 1,367 Times in 1,197 Posts
    Rep Power
    362
    Hi @sukh as New-MailboxExportRequest runs in the back ground if i empty the mailbox on the next powershell command will it clear the mailbox before the export has finished?

    This is my script i want to use

    Code:
    Add-PSSnapin "Microsoft.Exchange.Management.PowerShell.Admin"
    $date = Get-Date -format "dd/MM/yyyy"
    New-MailboxExportRequest -Mailbox SVC-EXCH-JOURNLING -FilePath "\\fp-itstorage\exchangeexports$\$date.pst"
    Search-Mailbox -id "SVC-EXCH-JOURNLING" -DeleteContent -Force
    or i could pipe it?

    Code:
    Add-PSSnapin "Microsoft.Exchange.Management.PowerShell.Admin"
    $date = Get-Date -format "dd/MM/yyyy"
    New-MailboxExportRequest -Mailbox SVC-EXCH-JOURNLING -FilePath "\\fp-itstorage\exchangeexports$\$date.pst" | Search-Mailbox -id "SVC-EXCH-JOURNLING" -DeleteContent -Force
    Thanks
    Last edited by FN-GM; 4th May 2013 at 08:28 PM.

  5. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    13,875
    Blog Entries
    8
    Thank Post
    728
    Thanked 1,367 Times in 1,197 Posts
    Rep Power
    362
    BUMP

  6. #5

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    1,909
    Thank Post
    1
    Thanked 300 Times in 290 Posts
    Rep Power
    70
    quick look it won't work. You would probably be better using Get-MailboxExportRequestStatistics to see if the export is complete then do the delete.

SHARE:
+ Post New Thread

Similar Threads

  1. Exchange 2010 - New GAL Empty
    By FN-GM in forum Enterprise Software
    Replies: 15
    Last Post: 16th July 2012, 11:52 AM
  2. New Exchange 2010 Cert issue
    By jmair in forum Windows Server 2008 R2
    Replies: 5
    Last Post: 22nd March 2011, 04:15 PM
  3. Replies: 2
    Last Post: 12th August 2010, 12:15 PM
  4. Exchange 2010, new cert, OWA dead.
    By RabbieBurns in forum Windows Server 2008 R2
    Replies: 4
    Last Post: 30th April 2010, 03:02 PM
  5. Microsoft Exchange 2010 (New Setup - 2000 mailbox)
    By RobFuller in forum Internet Related/Filtering/Firewall
    Replies: 6
    Last Post: 13th March 2010, 02:35 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •