You have to quote them and separate them by commas.
New-MailboxExportRequest -Mailbox leblatm -IncludeFolders
"#Contacts#”, “#Calendar#" -FilePath \\exmb2\PST\Tobycontacts.pst
From: [email protected] [mailto:[email protected]] On
Behalf Of Todd Lemmiksoo
Sent: Friday, June 27, 2014 12:04 PM
To: [email protected]
Subject: [Exchange] Mailbox Export help
I am having trouble getting the NewMailboxExportRequest to work for two
folders. My powershell is below.
C:\Windows\system32>New-MailboxExportRequest -Mailbox leblatm -IncludeFolders
"#Contacts# #Calendar#" -FilePath
\\exmb2\PST\Tobycontacts.pst<file:///\\exmb2\PST\Tobycontacts.pst>
Can you help with
The provided IncludeFolders or ExcludeFolders value is invalid. Folder alias
'Contacts# #Calendar' is invalid.
+ CategoryInfo : InvalidArgument: (System.String[]:String[]) [],
FolderFilterInvalidPermanentException
+ FullyQualifiedErrorId : 2371C094
--
T. Todd Lemmiksoo