我正在尝试制作一个Windows应用程序,它也为IE添加了一个URL“可信站点”。这部分工作。 解决方案 - http://www.nakov.com/blog/2009/05/15/c-code-for-changing-internet-explorer-security-settings-and-net-security-policy-to-run-windows-forms-based-activex-with-full-trust/更改IE设置以编程方式
但我需要更改相同的设置。我需要这个: “跨域访问数据源”需要“启用” “下载未签名的ActiveX控件”需要为“提示” “未标记为安全的初始化和脚本ActiveX控件”需要为“启用”
这是我有,但它不会工作
private void UpdateDataSource()
{
RegistryKey ChangeSettings = Registry.Users;
ChangeSettings = ChangeSettings.OpenSubKey(".DEFAULT\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2", true);
// "Access data sources across domains" - "Enable"
ChangeSettings.SetValue("1406", "0", RegistryValueKind.DWord);
// "Download unsigned ActiveX controls" - "Prompt"
ChangeSettings.SetValue("1004", "1", RegistryValueKind.DWord);
// "Initialize and script ActiveX controls not marked as safe for scripting" - "Enable"
ChangeSettings.SetValue("1201", "0", RegistryValueKind.DWord);
ChangeSettings.Close();
}
这听起来像:*“我如何降低IE中用户帐户的每个安全设置?”*。更不用说如果通过组策略设置安全性,您将无法做到这一点。 – slugster 2012-02-10 10:32:36
Slugster - 你有链接到“如何降低用户帐户的IE中的每个安全设置?”也许它可以帮助我 – LuckyDice 2012-02-10 10:41:56
哈哈。在发布链接@slugster之后,也许你可以找到*“我如何绕过操作系统中的所有安全功能?”*它必须存在,正确@Simon? – adelphus 2012-02-10 10:55:33