I've seen that there are transaction scope tools in PowerShell for working with the registry. But, I also understand that PowerShell providers have to specifically be set up to use transactions. Does SharePoint (preferably 2010) have something similar to this, or can you use transactions in Management Shell at all?

If not, is there any option to wrap my script in a try/catch kind of a tool to ensure that, if an error occurs, the entire script will be rolled back?


No. SharePoint cmdlets themselves do not support such functionality. When an object can be set, it will be set. If not, it will return an error back to the console.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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