View Single Post
  #6 (permalink)  
Old 07-28-2009, 12:47 PM
snissen snissen is offline
Intermediate Member
 
Posts: 22
Default

For example, I can't vouch for this code, but I found it at:
http://doodlescripts.com/News/article/sid=9.html

Use the code below to disable and enable rules. This could be useful during migrations. This should work for Outlook 2003 & Outlook 2007
================================================== ===================
'rules.vbs… On Error Resume Next

Set objOutlook = CreateObject("Outlook.Application")
Set colRules = objOutlook.Session.DefaultStore.GetRules

For Each oRule In colRules
oRule.Enabled = False
Next

colRules.Save

For Each oRule In colRules
oRule.Enabled = True
Next

colRules.Save
Reply With Quote