Re: Another Export-Mailbox question

2010-05-10 Thread Eric Woodford
...@activenetwerx.com] *Sent:* Thursday, May 06, 2010 9:06 PM *To:* MS-Exchange Admin Issues *Subject:* RE: Another Export-Mailbox question 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

RE: Another Export-Mailbox question

2010-05-10 Thread Michael B. Smith
Issues Subject: Re: Another Export-Mailbox question $results = Export-mailbox . If ($results.statuscode -eq 0) { write-host mailbox successfully exported} On Sat, May 8, 2010 at 11:47 AM, KenM kenmli...@gmail.commailto:kenmli...@gmail.com wrote: It does not look like I can use $?, even

RE: Another Export-Mailbox question

2010-05-10 Thread Michael B. Smith
: Monday, May 10, 2010 2:37 PM To: MS-Exchange Admin Issues Subject: Re: Another Export-Mailbox question $results = Export-mailbox . If ($results.statuscode -eq 0) { write-host mailbox successfully exported} On Sat, May 8, 2010 at 11:47 AM, KenM kenmli...@gmail.commailto:kenmli...@gmail.com

RE: Another Export-Mailbox question

2010-05-10 Thread Campbell, Rob
Try: Try {export-mailbox . -ea Stop} Catch {error handling} From: Eric Woodford [mailto:ericwoodf...@gmail.com] Sent: Monday, May 10, 2010 1:37 PM To: MS-Exchange Admin Issues Subject: Re: Another Export-Mailbox question $results = Export-mailbox . If ($results.statuscode -eq 0) { write

Re: Another Export-Mailbox question

2010-05-08 Thread KenM
be at least reasonably sure the export was successful? HTH -JP *From:* Joseph L. Casale [mailto:jcas...@activenetwerx.com] *Sent:* Thursday, May 06, 2010 9:06 PM *To:* MS-Exchange Admin Issues *Subject:* RE: Another Export-Mailbox question Just test the command: If (blah…) { Do

Another Export-Mailbox question

2010-05-06 Thread KenM
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

RE: Another Export-Mailbox question

2010-05-06 Thread Joseph L. Casale
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