简体   繁体   English

禁用Internet Explorer 11首次运行向导

[英]Disable Internet Explorer 11 First Run Wizard

I have a Selenium UI couple of tests running on a Windows Server 2012 scheduled task. 我有一个在Windows Server 2012计划任务上运行的Selenium UI几个测试。 But I have them failing again and again in the scheduled task (not in my development server) and Internet Explorer; 但我让他们在计划任务(不在我的开发服务器)和Internet Explorer中一次又一次失败; which I believe it is due to the first run wizard pop-up, the one that asks you about using "Recommended security, privacy and compatibility settings or not). I have asked the system administrator that has the scheduled task to get rid of that pop-up in his Internet Explorer, but with no luck. I have also ask him to disable it with this msdn blog solution 我相信它是由于第一次运行向导弹出,是一个询问你使用“推荐的安全性,隐私和兼容性设置与否”。我已经要求系统管理员有计划的任务摆脱它在他的Internet Explorer中弹出,但没有运气。我也要求他用这个msdn博客解决方案禁用它

http://blogs.msdn.com/b/akshayns/archive/2009/08/19/how-to-disable-internet-explorer-8-welcome-screen-for-all-users.aspx http://blogs.msdn.com/b/akshayns/archive/2009/08/19/how-to-disable-internet-explorer-8-welcome-screen-for-all-users.aspx

But it seems out-to-date. 但它似乎是最新的。 Any ideas or how can I disable that pop-up in the group policy, or in the windows server or using selenium ui in the code? 任何想法或如何禁用组策略中的弹出窗口,或在Windows服务器中或在代码中使用selenium ui?

Many thanks in advance 提前谢谢了

you have 2 ways: 你有两种方式:

by group policy editor or by editing the windows registry: 通过组策略编辑器或编辑Windows注册表:

Method #1: Using Group Policy Editor 方法#1:使用组策略编辑器

Using Group Policy Editor is probably the best method, because it can be used either locally, on one computer, or in an Active Directory environment by utilizing the GPO power. 使用组策略编辑器可能是最好的方法,因为它可以使用GPO电源在本地,在一台计算机或Active Directory环境中使用。

  1. Press Start button + R (the Run command), type gpedit.msc and press Enter to launch the Group Policy Editor. 按开始按钮+ R(运行命令),键入gpedit.msc并按Enter以启动组策略编辑器。 Note: In an Active Directory environment, open gpmc.msc and either edit an existing GPO, or create a new one and link it to the domain level, or to an OU of your choice. 注意:在Active Directory环境中,打开gpmc.msc并编辑现有GPO,或者创建一个新GPO并将其链接到域级别或您选择的OU。

  2. In the left pane, expand User Configuration > Administrative Templates > Windows Components > Internet Explorer. 在左窗格中,展开“用户配置”>“管理模板”>“Windows组件”>“Internet Explorer”。

  3. On the right pane, double-click on “Prevent running First Run wizard". A new settings window will open up. 在右侧窗格中,双击“阻止运行首次运行向导”。将打开一个新的设置窗口。

  4. Set the value to “Enabled”. 将值设置为“已启用”。

    1. In the options section you must choose one of the two options from the drop-down menu: 在选项部分中,您必须从下拉菜单中选择以下两个选项之一:

•Go directly to “Welcome To IE” page •Go directly to home page •直接转到“欢迎使用IE”页面•直接转到主页

You need to choose one of the two, otherwise the configuration will not work. 您需要选择其中一个,否则配置将无法正常工作。 The first option configures IE to skip the Welcome screen and go directly to your home page, whatever it is. 第一个选项将IE配置为跳过欢迎屏幕并直接转到您的主页,无论它是什么。

The second option configures IE to skip the Welcome screen and and go to the “Welcome to Internet Explorer” page directly. 第二个选项将IE配置为跳过欢迎屏幕,然后直接转到“欢迎使用Internet Explorer”页面。

  1. Click Apply to save the settings then click OK and close the Group Policy Editor window. 单击“应用”以保存设置,然后单击“确定”并关闭“组策略编辑器”窗口。

  2. Press Start button + R (the Run command) and type gpupdate /force and press Enter to refresh the Group Policy on the computer. 按开始按钮+ R(运行命令)并键入gpupdate / force,然后按Enter以刷新计算机上的组策略。

Method #2: Using Registry Editor 方法#2:使用注册表编辑器

You can use this method to either manually configure one computer, or generate a .REG file to import it on other machines. 您可以使用此方法手动配置一台计算机,或生成.REG文件以将其导入其他计算机。 Warning: 警告:

This document contains instructions for editing the registry. 本文档包含编辑注册表的说明。 If you make any error while editing the registry, you can potentially cause Windows to fail or be unable to boot, requiring you to reinstall Windows. 如果在编辑注册表时出现任何错误,则可能导致Windows失败或无法启动,从而要求您重新安装Windows。 Edit the registry at your own risk. 编辑注册表需要您自担风险。 Always back up the registry before making any changes. 始终在进行任何更改之前备份注册表。 If you do not feel comfortable editing the registry, do not attempt these instructions. 如果您对编辑注册表感到不舒服,请不要尝试这些说明。 Instead, seek the help of a trained computer specialist. 相反,寻求训练有素的计算机专家的帮助。

  1. Press Start button + R to open run command dialog box. 按开始按钮+ R打开运行命令对话框。 Type regedit and press Enter to open the Registry Editor. 键入regedit,然后按Enter键以打开注册表编辑器。 You may be prompted with a UAC prompt, click "Yes". 您可能会收到UAC提示,单击“是”。

  2. Navigate to the following path: HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Internet Explorer\\Main Note: The above branch does not exist by default, and has to be created manually, or by running the .REG file available at the end of this article. 导航到以下路径:HKEY_LOCAL_MACHINE \\ Software \\ Policies \\ Microsoft \\ Internet Explorer \\ Main注意:默认情况下,上述分支不存在,必须手动创建,或者运行本文末尾提供的.REG文件。

  3. Right click on the right pane and select New > DWORD (32-bit) Value. 右键单击右窗格,然后选择“新建”>“DWORD(32位)值”。

  4. Enter DisableFirstRunCustomize. 输入DisableFirstRunCustomize。

  5. Right-click on the new entry it and choose “Modify”. 右键单击新条目,然后选择“修改”。

    1. Modify its DWORD (32-bit) Value to “1” (without the quotes) and click OK. 将其DWORD(32位)值修改为“1”(不带引号),然后单击“确定”。
  6. Exit the Registry Editor. 退出注册表编辑器。

Note: You can use this .REG file to import the same setting to your computer: Windows Registry Editor Version 5.00 注意:您可以使用此.REG文件将相同的设置导入计算机:Windows注册表编辑器版本5.00

;Disable IE11 Welcome Screen ;禁用IE11欢迎屏幕

[HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Internet Explorer\\Main] [HKEY_LOCAL_MACHINE \\ Software \\ Policies \\ Microsoft \\ Internet Explorer \\ Main]

"DisableFirstRunCustomize"=dword:00000001 “DisableFirstRunCustomize”= DWORD:00000001

Copy the above text into a new text file, and save it as "DisableIEWelcome.reg". 将上述文本复制到新文本文件中,并将其另存为“DisableIEWelcome.reg”。

Taken from here : https://mkcheah88.blogspot.co.il/2014/06/microsoft-how-to-disable-internet.html 摘自此处: https//mkcheah88.blogspot.co.il/2014/06/microsoft-how-to-disable-internet.html

It looks like this is now called "Prevent running First Run wizard" in the IE11 group policy editor. 看起来这在IE11组策略编辑器中现在称为“防止运行首次运行向导”。 (At least, that's what it's called on my machine.) (至少,这就是我的机器上的名字。)

(FWIW, group policy editor doesn't always present settings in alphabetical order. When trying to hunt down errant items, I find it useful to click on the header to sort things. YMMV.) (FWIW,组策略编辑器并不总是按字母顺序显示设置。当尝试搜索错误的项目时,我发现点击标题对事物进行排序很有用.YMMV。)

Hope this helps... 希望这可以帮助...

-- Lance - 兰斯

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM