SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to write a power shell script in which i want to write a farm backup command and it should fire a mail on backup error.

please help me to do this.


share|improve this question

Here you jave the script about the backup

and here about the email

share|improve this answer
gilloux, i want to sent conditional mail. i mean when error occurs in backup then it should shoot an email. – Ashish Dubey Mar 28 '11 at 8:25
You can use the trap and try/catch systen in powershell I looked up this :… – GillouX Mar 28 '11 at 9:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.