简体   繁体   English

如何使用 C# 处理 Outlook 中的安全弹出窗口

[英]How to handle security pop-up in outlook using C#

While Automating Outlook using Microsoft.Office.Interop.Outlook a security pop-u is getting displayed saying "A program is trying to access a email folders.......".在使用 Microsoft.Office.Interop.Outlook 自动化 Outlook 时,会显示一个安全弹出窗口,上面写着“程序正在尝试访问电子邮件文件夹......”。

Please help how can we bypass/solve using C# without using 'Redemption' or by changing the security settings(do not have access).请帮助我们如何绕过/解决使用 C# 而不使用“赎回”或更改安全设置(无权访问)。

PS: could we use JavaScript executer to accept the alert box? PS:我们可以使用 JavaScript 执行器来接受警报框吗? Thanks in advance提前致谢

如果您不想使用Redemption或 ClickYes 之类的实用程序,您唯一的选择就是安装最新的防病毒应用程序(如果您可以控制代码运行的环境)。

You get a standard security prompt in Outlook.您会在 Outlook 中获得标准的安全提示。

There are several ways for suppressing such prompts:有几种方法可以抑制此类提示:

  1. Use a third-party components for suppressing Outlook security warnings.使用第三方组件来抑制 Outlook 安全警告。 See Security Manager for Microsoft Outlook for more information.有关详细信息,请参阅Microsoft Outlook 安全管理器

  2. Use a low-level API instead of OOM.使用低级 API 而不是 OOM。 Or any other third-party wrappers around that API, for example, Redemption.或围绕该 API 的任何其他第三方包装器,例如 Redemption。

  3. Develop a COM add-in which has access to the trusted Application object.开发一个可以访问受信任的应用程序对象的 COM 加载项。 And then communicate from a standalone application with an add-in using standard .Net tools (Remoting).然后使用标准 .Net 工具(远程处理)从独立应用程序与加载项进行通信。

  4. Use group policy objects for setting up machines.使用组策略对象来设置机器。

You can read more about all these ways on the Outlook "Object Model Guard" Security Issues for Developers page.您可以在面向开发人员的 Outlook“对象模型防护”安全问题页面上阅读有关所有这些方式的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用C#中的硒自动在webrtc中单击“允许/阻止”按钮以弹出麦克风权限? - How to automate the clicking of 'Allow/Block' button in webrtc for microphone permission pop-up using selenium in C#? 在C#中创建弹出式表单 - Creating a Pop-Up form in C# Selenium C# 弹出窗口处理 - Selenium C# Pop-up handling 如何在C#中禁用MS Outlook的安全弹出窗口? - How to disable security pop ups of MS Outlook in C#? 如何停止 Outlook 替代问候弹出,或自动关闭它 - How stop Outlook alternative greeting pop-up, or close it automatically 如何使用以C#编写的Selenium在所需位置从弹出窗口下载并保存Excel和pdf文件 - How to download and save excel and pdf file from pop-up in a desired location using Selenium written in C# 如何在Windows安全性弹出窗口中按TAB按钮 - How to press TAB button in Windows Security pop-up 如何处理是否单击按钮时使用Javascript弹出的对话框 - How to handle Yes No dialog that was pop-up using Javascript on button click 使用ASP.Net中的C#为弹出窗口输出CSV文件 - to output CSV file for pop-up window using C# in ASP.Net 我在C#中使用Selenium Webdriver,无法在证书弹出窗口中单击“确定” - I am using selenium webdriver in C#, I am unable to click ok in the certificate pop-up
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM