Disable security alerts

M

ms news

They are any possibility to disable the security alerts on outlook XP/2003?,
I thing trought the registry.

I have a Visual Basic application that access to my outlook messages. But
the security alert is not allowing me to access all the time to the savefile
method


Thanks in advance.
 
S

Sue Mosher [MVP-Outlook]

See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
M

ms news

Thanks is what I was looking for.

"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
See http://www.outlookcode.com/d/sec.htm for your options with regard to the
"object model guard" security in Outlook 2000 SP2 and later versions.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

I am just not getting this to work.

Outlook 2003, SP1
Windows XP, SP2

Here is a snippet of code that is failing:

Private Sub sortIncoming(ByRef mail As MailItem)
On Error GoTo errHandler
Dim targetPst As String
Dim targetFolders
Dim sourceDomain As String
Dim sourceList As String
Dim sourceAddress As String
Dim myExplorers As Outlook.Explorers
Dim pstFolder As MAPIFolder
Dim targetFolder As MAPIFolder
Dim i As Integer
Dim j As Integer
' This is *supposed* to bypass the object guard...
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim olMail As Outlook.MailItem

strID = mail.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set olMail = olNS.GetItemFromID(strID)

' This is still tripping the object guard!!
sourceAddress = olMail.Recipients.Item(1).Address
.....
.....
.....

exitHandler:
Set olMail = Nothing
Set olNS = Nothing
Exit Sub

errHandler:
Resume Next

End Sub

Any ideas *WHY* it's still tripping the object guard???

--
Keith 'StarPilot' Barrows
ASPInsider
http://sol3.net/blogs/starpilot
 
R

Rob Nicholson

' This is still tripping the object guard!!
sourceAddress = olMail.Recipients.Item(1).Address

I missed the start of the thread. I assume this is about Outlook Security if
so then the above is one of the things that triggers Outlook Security and
AFAIK it cannot be disabled (unless there is some really nasty binary EXE
hack). There solutions if you're talking to an Exchange mailbox that your
Exchange administrator may be able to enable (Outlook Security Templates) if
they are feeling in a helpful mood. Another alternative is the Redemption
library. Or you can roll your own using Extended MAPI (never tried the
later).

Cheers, Rob.
 
S

Sue Mosher [MVP-Outlook]

This is an Outlook VBA procedure, a COM add-in, or an external VB application?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Hmm. I've been watching this problem and comparing notes between my work
system (where it's broken) and my home system (where it works).

At work, I get the annoyance message and have to "allow" access for 1, 5 or
10 minutes.

At home, I launch Outlook, am asked if I want to allow macros, click yes and
am never bothered again.

Both systems are Win XP Pro, SP2. Both systems are on domains (yes, I run a
DC at home). The home DC has a minimum set of Policies. The work system can
take 3 minutes just loading policies. Both systems are running Outlook 2003.
Work is on SP1, home is whatever the latest is via windows update.

So, why does it work in one place and not the other??

--
Keith 'StarPilot' Barrows
ASPInsider
http://sol3.net/blogs/starpilot
 
S

Sue Mosher [MVP-Outlook]

In Outlook | Help About on the work system, what does it show as the setting for "Security Mode"?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Yes, it means the administrator in your office has set the CheckAdminSettings value to look to a public folder for settings that control the behavior of the "object model guard." Under that scenario, your VBA intrinsic Application object is not "trusted," and thus you will get security prompts.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top