Script to add entry to "Safe Senders" list in Outlook 2003

Posted on 2009-04-15
Last Modified: 2013-11-09
I would like to write a command line script to add an entry to the Safe Senders list in Outlook.  We have many users who are getting emails from SharePoint and periodically, Outlook dumps them to the junk mail folder.

Thank you in advance
Question by:NBSO_ISS
    LVL 38

    Accepted Solution

    Paste the script below into a text file with a .cmd extension.  Customize the value of the list variable on line 4 with the location of a text file containing the addresses to allow, one per line.  Ensure that users have Read permission to this directory.

    Running the script will add registry entries so that the addresses in the file will be added to the user's Safe Senders list the next time that Outlook is opened.

    @echo off
    set list=\\server\share\safesenders.txt
    set officev=11.0
    set key=HKCU\Software\Microsoft\Office\%officev%\Outlook\Options\Mail
    reg add "%key%" /v JunkMailImportLists /t REG_DWORD /d 1 /f
    reg add "%key%" /v JunkMailSafeSendersFile /t REG_SZ /d "%list%" /f

    Open in new window

    LVL 14

    Author Closing Comment

    Fantastic!  This will save me alot of time.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now