Just test the command: If (blah...) { Do the rest..} etc
From: KenM [mailto:kenmli...@gmail.com] Sent: Thursday, May 06, 2010 5:03 PM To: MS-Exchange Admin Issues Subject: Another Export-Mailbox question I am creating a powershell script that can export several mailboxes to PST of users that are going to be disabled and deleted. I know there is a XML and on screen logging when you run export-mailbox but is there any way to add error checking into a script that will verify the mailbox exported successfully? I want the script to be automated so if it fails on the PST export it will not do anything else to the account.