open notepad, add the below command
Export-Mailbox <username> -DeleteContent -confirm: $False
http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx
Save the file as filename.ps1
Open Notepad
C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "c:\Program Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -command "C:\Scripts\filename.ps1
save as export.bat
go to task manager schedule the task to run the batch file
- Proposed as answer by Vishwanath.S 22 hours 9 minutes ago