Automating Exchange 2007 Management Shell Export-Mailbox to a pst file

lleddac used Ask the Experts™
Doing a brick level backup of all mailboxes on my Exchange 2007 server, I want to automate the process. I am using the cmdlet "Get-Mailbox -OrganizationalUnit SpecialEducation | Export-Mailbox -PSTFolderPath 'C:\PSTFiles\SpecialEducation' from a 32 bit machine that has the Exchange Management Tools installed. When I enter that text I always have to confirm I want to do this so I enter an "A" for all. Is there anyway to feed the "A" to the command without having to enter it? I would like to fully automate the process. Can I use batch files to do this?
Thank you,
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Yes. Add at the end of Export-Mailbox command switch -Confirm:$False .


Perfect shodan15,
Thank you very much

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial