Exchange Server Forums
Forums |
Register |
Login |
My Profile |
Inbox |
RSS
|
My Subscription |
My Forums |
Address Book |
Member List |
Search |
FAQ |
Ticket List |
Log Out
export-mailbox PST
|
Users viewing this topic:
none
|
Logged in as: Guest
|
Login | |
|
Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
|
|
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
|
export-mailbox PST - 18.Feb.2008 3:48:08 PM
|
|
|
afoint
Posts: 2
Joined: 9.Jan.2007
Status: offline
|
We are looking to schedule export-mailbox for all users on a regular basis in order to have an easily available restore capability for users mail, on top of daily database backups from a 3rd party application using this command: get-mailbox -server exchangemail -resultsize unlimited | export-mailbox -pstfolderpath Z:\ -baditemlimit 1000 -maxthreads 15 -confirm:$false This is saved in a .ps1 file and then run appropriately from a scheduled task using the exchange powershell cmdlet. If you log onto this server and manually run the scheduled task it runs fine, takes a long time, but it works. If I log into the server with the service account that has exchange server admin rights to exchangemail and run it manually it also runs fine, but if I try to let the service run as a scheduled task when no one is logged in as this service account, it fails with "Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219 I know this is the error you get when the account doesn't have the proper rights to exchange, but this doesn't make sense because it can run interactively?
|
|
|
|
RE: export-mailbox PST - 27.Feb.2008 7:28:10 PM
|
|
|
Onlyodin
Posts: 1
Joined: 27.Feb.2008
Status: offline
|
quote:
ORIGINAL: afoint "Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219 I know this is the error you get when the account doesn't have the proper rights to exchange, but this doesn't make sense because it can run interactively? I've been having this same error code, but for me it may relate slightly differently. For me, it was because the OU the source user object was in had permission inheritance blocked, which wasn't allowing relevant exchange groups to apply permissions to the AD user object. If you take into account my issue was AD Permissions related, perhaps the same applies for you. cmd.exe allows only interactive users to execute it by default, so check if the same applies to the powershell interpreter. Short of that, maybe try setting the ExecutionPolicy to allow all scripts to run - use Get-ExecutionPolicy and Set-ExecutionPolicy. Hope this helps - good luck
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|