如何使用Outlook Redemption绕过安全补丁以保存Outlook项目 [英] How to bypass the security patch using Outlook Redemption to save an Outlook Item

查看:71
本文介绍了如何使用Outlook Redemption绕过安全补丁以保存Outlook项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个可以从PST文件中提取项目并将其保存到指定位置的应用程序.现在,我正在使用提供的Microsoft.Office.Outlook.Interop来执行此操作.

这是一些我用来保存联系人项目的代码.我正在使用的所有物品的代码都相似.

I am currently working on an application that can extract items from PST files and save it to a specified location. Right now I am using provided Microsoft.Office.Outlook.Interop to do this.

Here is some code that I use to save a contact Item. The code is similar for all the items that I am using.

Dim objitem As Object
If TypeOf objItem Is Outlook.ContactItem Then
            'Get out contacts
            ContactItem = CType(objItem, Outlook.ContactItem)
            strSaveName = (ContactItem.FullName.ToString) & ".vcf"
            ContactItem.SaveAs(strFolderPath & "\" & (strSaveName),   Outlook.OlSaveAsType.olVCard)
        End If



但是,当我尝试使用SaveAs()方法保存该项目时,将弹出安全提示,要求我允许应用程序在一段时间内使用Outlook. (1、5、10分钟),如果我没记错的话.我了解Outlook的赎回可以绕过这一点.我该怎么办?

问候,

Adeeb



However when I try to save the item using the SaveAs() method, the security prompt will popup asking me to allow the application to use Outlook for a certain period of time. (1,5,10 min) if I am not wrong. I understand that Outlook redemption can bypass this. How should I do it?

Regards,

Adeeb

推荐答案

您为什么不问进行救赎的人?这是链接 [
Why don''t you ask the guys who made Redemption?? Here''s the link[^].

After all, they would know the product better than anyone here.

If you have specific questions about a 3rd party library, you''re best source of information on how to use that library is the manufacturer of it.


我已经尝试过询问,但到目前为止我没有回音.我的电子邮件可能在某处丢失了.无论如何,我发现了一个肮脏的解决方法.

基本上,我必须编辑控制ObjectModelGuard的注册表项.使用VB.net将它设置为0,就像这样*:

I have already tried asking but so far I''ve had no reply. My email might have gotten lost somewhere. Anyway I have found a dirty walkaround.

Basically I have to edit the registry key that controls the ObjectModelGuard. Using VB.net I set it to 0 like so*:

regvalue = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\Security", "ObjectModelGuard", Nothing)
                If regvalue = Nothing Or regvalue = 0 Then
                    My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\Security", "ObjectModelGuard", 2)
                End If




十分简单.虽然使用Outlook赎回可能更安全,但我认为这段小代码不值得经历将所有内容都声明为safeobjects的麻烦.

问候,

阿黛布

*请注意,这仅适用于运行Outlook 2010的64位计算机.

32位计算机没有Wow6432Node,因此要更改的注册表项可能是

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Office \ 14.0 \ Outlook \ Security

另外,如果您不是运行Outlook 2010,而是运行2007或更早版本,则此密钥可能位于12.0(2007)甚至11.0(我不知道它是什么版本)




Easy peasy. Outlook redemption is probably safer though but I think this tiny piece of code is worth not going through all the trouble of declaring everything as safeobjects.

Regards,

Adeeb

*Note that this only works for 64 bit computers running Outlook 2010.

32 bit computers do not have the Wow6432Node so the registry key to alter will probably be

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Outlook\Security

Also if you are not running Outlook 2010 but 2007 or earlier this key might be in 12.0 (2007) or even 11.0(I don''t know what version this is)


这篇关于如何使用Outlook Redemption绕过安全补丁以保存Outlook项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆