Home » Sharepoint 2010RSS

Disable Event (ItemUpdated) with powershell

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

 

1 Answer Found

 

Answer 1

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

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverbase.eventfiringenabled.aspx

 

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

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter