Friday, April 06, 2007

How To Disable Outlook Security Warning - "A program is trying to access e-mail addresses..."

When any software tries to access Outlook Address Book programmatically by using Outlook libraries, the system shows the security warning message –

A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this?
If this is unexpected, it may be virus and you should choose “No”.

According to KB329765“This behavior occurs because there is no running session of Outlook to determine the correct security profile to load. Therefore, the default security profile is used, causing the security prompt. When you programmatically access an item in the Address Book, a session must be running to determine the correct security profile to load. When Microsoft Outlook is not running, the security dialog prompts the user because the default security profile is used.”

Although offered as a security feature, this prompt can be very annoying if the application frequently needs to access the address book or to send mails.

The workaround is to disable this security prompt by setting/creating a REG_DWORD registry entry CheckAdminSettings = 1 located at HKEY_CURRENT_USER\Software\Policies\Microsoft\Security

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Security] "CheckAdminSettings"=dword:00000001

The table below shows other applicable values for CheckAdminSettings.

Value What Oulook Does
Key not present Uses its default settings
0 Uses its default settings
1 Looks for settings in the Outlook Security Settings folder, applying them according to the defaults and specific users you've specified.
2 For Outlook 2002 and Outlook 2003 only: Looks for settings in the Oulook 10 Security Settings folder, ignoring any settings in the Outlook Security Settings folder. Use this value when you want Outlook 2002/2003 to use different settings
Anything else Uses its default settings

This setting applies in current user hive only. Therefore, to apply it by default to all users, make the same entry in Default User hive (HKEY_USERS\.DEFAULT). This NTUSER.DAT file can then be copied to other systems as well where the Outlook security warning needs to be disabled. Of course, it goes without saying that this setting can also be exploited by viruses. Also note that CheckAdminSettings registry change works only with Exchange Server.

References: http://searchexchange.techtarget.com/originalContent/0,289142,sid43_gci963544,00.html

Thanks to my manager for sharing this info!

13 Comments:

Blogger vfdvgf said...

There are wow gold 3 men in a plane. wow gold A priest, a baseball player world of warcraft power leveling and a soldier. the pilot goes into dog clothes the cabin and 2moons gold tells them that there Atlantica gold is a weight overload 2moons power leveling on the plane and they would each have to throw world of warcraft gold one personalworld of warcraft power leveling belonging out aoc power leveling the window to safely land. Power Leveling the priest throws flyff money out a bible and says,"forgive me lord, i will last chaos gold get another one.archlord power leveling The baseball player world of warcraft gold throws a baseball out and says, aoc gold "i play professional baseball, i can get thesearchlord gold whenever i want." Now

Thursday, July 16, 2009 4:50:00 PM  
Blogger Alex said...

When I was writing the letter at 3 o'clock some days ago,my MS Outlook was crashed and data too.This situation was difficult to me and I used next software-view .ost files.Program advised me friend,it helped him too,as he said tool is free.Moreover application can farther view ost file runs under all versions of Windows operating system, such as: Windows 98, Windows Me, Windows NT, Windows 2000, Windows 2003, Windows XP and Windows Vista.

Sunday, August 02, 2009 7:51:00 AM  
Blogger Alexis said...

Yesterday I worked with my Outlook Express and after that I saw that my address book was damaged.I didn't know what to do.But fortunately me helped-windows 2000 address book.I found it in net on one forum.It is free as is known.Moreover program can successfully solve the problem of data corruption for files of wa~ and wab format.

Wednesday, September 09, 2009 11:59:00 PM  
Blogger Sandeep Aparajit said...

This comment has been removed by the author.

Wednesday, September 30, 2009 6:39:00 PM  
Blogger Sandeep Aparajit said...

But seems that it does not work with Outlook 2007. I my case I didn't had the "Security" folder in the registry. I have added the "Security" folder and tried restarting Outlook, but still I'm getting the "A program is trying to access..." message box.

Sandeep Aparajit
http://sandeep-aparajit.blogspot.com

Wednesday, September 30, 2009 6:40:00 PM  
Blogger Alexis said...

In past my uncle had big problems with mails.And he solved their with help-outlook express repairing tool,tool fixed all data free of charge and helped to him and me too how analyze the file of dbx format and prepare temporary files for further extraction with Outlook Express repair tools.Utility helped me too very easy and effectively.

Tuesday, October 06, 2009 11:19:00 PM  
Anonymous Anonymous said...

I couldn't even see this folder on XP PRO SP2 - I added the key and value and it didn't work. Office 2003. Have I done something wrong?

Thursday, July 08, 2010 6:00:00 AM  
Anonymous generic cialis said...

In principle, a good happen, support the views of the author

Wednesday, November 24, 2010 5:56:00 PM  
Anonymous Anonymous said...

I have an Excel 2010 file that pulls data from a Sharepoint 2010 list, does some filtering and calculation, and then sends emails to a list of people in a different Sharepoint 2010 list. It worked fine as an Excel 2010 macro on my own machine, but would not automate due to security warnings when I moved it to the server.

I took the suggestion of using the trusted Outlook object and moved my Excel code into Outlook. I created the variable app_Excel As Excel.Application and updated my macros where needed (ActiveSheet ... became app_Excel.ActiveSheet, for example).


[code]
Dim app_Excel As Excel.Application
Dim wbk_OcSharepoint As Workbook
Set app_Excel = CreateObject("Excel.Application") 'GetObject Assumes Excel is open; Use CreateObject if Excel is not open.
Set wbk_OcSharepoint = app_Excel.Workbooks.Open(yourFile)
app_Excel.ActiveWorkbook.RefreshAll
main app_Excel
app_Excel.Application.DisplayAlerts = False
app_Excel.Quit
[code]

Saturday, June 04, 2011 3:15:00 AM  
Blogger Mahes said...

Thanks a lot, the posted link has working perfectly.

Wednesday, October 05, 2011 5:42:00 PM  
Anonymous Online Laptop Shop said...

Does not work for me either

Thursday, June 14, 2012 6:31:00 PM  
Anonymous Anonymous said...

What work for me was to choose in the drop down box when submiting the mail merge was to send it out as HTML, and not as plain text.

HTML will not give you this error as to plain text.

Hope this works for anyone who desires this option.

Wednesday, June 20, 2012 11:03:00 PM  
Anonymous Sarah said...

The warning pops up regardless of whether you use plain text or html. I programatically send email out in html and the warning still pops up.

Saturday, July 28, 2012 12:04:00 AM  

Post a Comment

Links to this post:

Create a Link

<< Home