Tuesday, September 30, 2014

export exchange server 2013 mailbox error


New-MailboxExportRequest -Mailbox "USER_NAME" -FilePath \\fs\Public\tmp\mailbox_exported\test.pst

The New-MailboxExportRequest (and New-MailboxImportRequest) cmdlet requires a UNC path for the FilePath parameter instead of the local directory (ex: c:\tmp). However, if the share and NTFS permissions aren’t set correctly on the destination path, you could get an error like this one.

Unable to open PST file '\\fs\Public\tmp\mailbox_exported\test.pst'. Error details: Access to the path '\\fs\Public\tmp\mailbox_exported\test.pst' is denied.

The problem is that the New-MailboxExportRequest and New-MailboxImportRequest cmdlets don’t run in the user context, but in the machine context. You need to give the Exchange server access to the shared drive. So if you are running the cmdlet on ExServer01, add ExServer01 to the share and NTFS permissions for \\servername\sharename so it can read and write data.


No comments: