Powershell script to export only the Contacts from within a mailbox.
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://FullyQualifideServerName/Powershell -Authentication Kerberos
$title = "Export User Mailbox folder only"
Write-Host "Path PST saved to is \\DestinationFileShare\$username.pst"
$username = Read-Host "Enter username to be exported"
New-MailboxExportRequest -Mailbox $username -IncludeFolders "#Contacts#" -FilePath "\\PathToExportPSTTo\$username.pst"
No comments:
Post a Comment