I was using the command below from the Mailbox server fine, but due to inconsistent errors, I need to run this from the CAS server with a higher Service pack level. So from the CAS, how can I modify the command to find the database on the mailbox server?
Get-Mailbox -ResultSize unlimited -Database "Database1" | export-mailbox –ExcludeFolders \Journal, \Calendar, \Contacts, \Notes, \Tasks -ContentKeywords "My company tag phrase" –DeleteContent
I have tried changing: -Database "servername\database1" and other variances of this with no luck. Any help will be much appreciated.