0
votes
1answer
195 views

Backup-SPFarm not respecting ErrorActionPreference

I'm trying to setup a script in Jenkins to backup my SharePoint server. The problem I'm encountering is that it Backup-SPFarm is not correctly returning an error. So my $ErrorActionPreference is being ...
1
vote
2answers
808 views

Error Handling with Powershell Scripts for SharePoint 2010

I am very new to writing PS scripts for deploying solutions and activating features. In my current scripts I get errors some time like feature not activated or deactivated properly. I am looking ...