Monday, May 19, 2014

Exchange 2010 - Random Scripts 2

Powershell script to export a mailbox to .pst

##Script to export a mailbox to pst

$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 -FilePath "\\PathToExportPSTTo\$username.pst" 

No comments:

Post a Comment