Answered by:
Disable Event (ItemUpdated) with powershell

Question
-
Hello,
I'm trying to update an item in a list without firing the ItemUpdated-Event. In SP2007 this was possible with EnableEventFiring () and DisableEventFiring() - now MSDN says its obsolete. I'm wondering if there is a way to disable Events from powershell for an update? Any hints for me?
Cheers and thanks for your time!
Max
Monday, August 9, 2010 4:37 PM
Answers
-
Hi MaxMelcher,
As what you said, the “EnableEventFiring” is obsolete for sharepoint 2010. I don’t know if there is a way to enable it using PowerShell. But Sharepoint 2010 has created a new property “EventFiringEnabled” to replace the “EnableEventFiring” method.
More information about “EventFiringEnabled”
Also here is an article about toggling events, I think it’s helpful to you.
http://blogs.msdn.com/b/mjsabby/archive/2010/01/24/disabling-events-in-sharepoint-2007-and-sharepoint-2010.aspx
- Proposed as answer by CoreyRoth [MVP]MVP Wednesday, August 11, 2010 2:41 PM
- Marked as answer by Rock Wang– MSFT Friday, August 20, 2010 6:17 AM
Wednesday, August 11, 2010 6:31 AM
All replies
-
Hi MaxMelcher,
As what you said, the “EnableEventFiring” is obsolete for sharepoint 2010. I don’t know if there is a way to enable it using PowerShell. But Sharepoint 2010 has created a new property “EventFiringEnabled” to replace the “EnableEventFiring” method.
More information about “EventFiringEnabled”
Also here is an article about toggling events, I think it’s helpful to you.
http://blogs.msdn.com/b/mjsabby/archive/2010/01/24/disabling-events-in-sharepoint-2007-and-sharepoint-2010.aspx
- Proposed as answer by CoreyRoth [MVP]MVP Wednesday, August 11, 2010 2:41 PM
- Marked as answer by Rock Wang– MSFT Friday, August 20, 2010 6:17 AM
Wednesday, August 11, 2010 6:31 AM -
Is there actual a way to set this via Powershell?Friday, March 23, 2012 6:06 PM
-
See this forums post for explanation how to switch off eventfiring for a certain Powershell thread.
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/6262b472-e4f6-4a37-963a-e05115f9198c
Just tried and it works perfectly fine.
Saturday, March 24, 2012 12:45 PM