本地系统帐户的IE保护模式 [英] IE Protected Mode for Local System Account

查看:102
本文介绍了本地系统帐户的IE保护模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Windows 7操作系统上运行Team City Build代理的Windows服务。

I have a Windows Service that runs a Team City Build agent on a Windows 7 OS.

此代理触发使用Selenium IE Web驱动程序执行的NUnit测试一系列测试。

This agent triggers NUnit tests which use the Selenium IE web drivers to execute a series of tests.

要使Selenium IE Web驱动程序工作,所有区域的保护模式需要设置为相同的值(保护模式打开或关闭) 。

For the Selenium IE web drivers to work the protected mode for all zones needs to be set to the same value (either protected mode on or off).

问题是本地系统帐户的默认设置无效(某些区域正在保护模式下运行,其他区域则没有)。

The problem is the default settings for the Local System Account are invalid (some zones are running in protected mode, others are not).

任何人都可以告诉我如何更改所有用户或本地系统帐户用户的保护模式设置?

Can anyone can tell me how to change the protected mode settings for either all users or the Local System Account user?

推荐答案

这是解决方案(我去过互联网的每个角落都是为了得到这个):

Here is the solution (and I've been to every corner of the Internet in order to get this):

点火 RegEdit 并转到此键:

HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones

在我的机器(Windows 7)上,本地系统帐户 S-1-5-18 。对于所有版本的Windows,这可能是相同的,但我不知道。

On my machine (Windows 7) the Local System account is S-1-5-18. This might be the same for all versions of Windows, but I don't know about that.

在该注册表项中,还有五个键1,2,3 ,4和5 - 每个代表一个区域。

In that registry key, there are five more keys 1, 2, 3, 4 and 5 - each representing a Zone.

对于每个区域,如果存在名称为2500的DWORD值,请将其值设置为0以关闭保护模式。请注意,如果不存在,则不必添加它。

For every zone, if there is a DWORD value with the name "2500", set its value to 0 to turn protected mode off. Note that you don't have to add it if it isn't there.

值2500应该控制勾选框启用保护模式。

The value "2500" is supposed to control the tick box "Enable protected mode".

UPDATE(来自anon用户):

执行相同操作的图形方式是确保交互式服务检测服务(UI0Detect)正在运行(请注意,Windows 8/2012及更高版本需要正确设置 HKLM \ SYSTEM \ CurrentControlSet \Control \ Windows \NoInteractiveServices 注册表项才能进行要显示的弹出窗口)获取 psexec 并运行

A graphical way of doing the same is to ensure the "Interactive Services Detection" service (UI0Detect) is running (note that Windows 8/2012 and later need the HKLM\SYSTEM\CurrentControlSet\Control\Windows\NoInteractiveServices registry key to be set correctly in order for the popup to appear) get hold of psexec and run

psexec -si 0 "C:\Program Files\Internet Explorer\iexplore.exe"

在弹出窗口中单击查看消息,然后在Internet Explorer中切换屏幕后,转到工具 - > Internet选项|安全并检查每个区域的安全级别。

In the popup click on View the message, then after the screen switches in Internet Explorer go to Tools -> Internet options | Security and check the Security level for each zone.

快乐的UI测试!

这篇关于本地系统帐户的IE保护模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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