windows 此文件位于本地网络之外的位置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18394734/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
This file is in a location outside your local network
提问by JohnB
If I launch my application from one network folder, I don'tget a dialog.
如果我从一个网络文件夹启动我的应用程序,则不会出现对话框。
However, if I copy my application to a different network folder, and try to launch it, I get the "Open File - Security Warning"dialog displayed below:
但是,如果我将我的应用程序复制到不同的网络文件夹,并尝试启动它,我会看到下面显示的“打开文件 - 安全警告”对话框:
If you Google:
如果你谷歌:
you'll come across pages that talk about Intranet versus Internet zones, registry edits, Group Policy changes, or even Microsoft Access.
您会遇到讨论 Intranet 与 Internet 区域、注册表编辑、组策略更改甚至 Microsoft Access 的页面。
I don't want to deal with any of that if possible. I need the solution to work across 100's of computers that will be launching this application from the network, and I can't make a system change to each of those computers.
如果可能的话,我不想处理任何这些。我需要该解决方案在 100 台将从网络启动此应用程序的计算机上工作,但我无法对每台计算机进行系统更改。
1. Why am I getting that dialog if I launch from certain network folders but not others?
1. 如果我从某些网络文件夹而不是其他文件夹启动,为什么会出现该对话框?
2. How can I prevent that dialog from popping up?
2. 如何防止弹出该对话框?
Please mention multiple possibilities if applicable.
如果适用,请提及多种可能性。
回答by Mathijs Flietstra
I just ran into this problem myself while trying to open some JavaScript files on a development storage Azure blob which I have mapped as a drive in Windows Explorer, I fixed it by going to:
我自己在尝试打开开发存储 Azure blob 上的一些 JavaScript 文件时遇到了这个问题,我已将其映射为 Windows 资源管理器中的驱动器,我通过以下方式修复了它:
Control Panel > Internet Options > Security
Control Panel > Internet Options > Security
Then selecting Local intranet
, clicking on Sites
, unchecking
然后选择Local intranet
,单击Sites
,取消选中
[ ] Automatically detect intranet network
[ ] Automatically detect intranet network
and checking both:
并检查两者:
[x] Include all local (intranet) sites not listed in other zones
and
[x] Include all local (intranet) sites not listed in other zones
和
[x] Include all network paths (UNCs)
.
[x] Include all network paths (UNCs)
.
回答by Gregory Adam
To Mathijs
致马蒂斯
Control Panel > Internet Options > Security Adding the IPs of the drives in the Advanced button ( of local intranet) worked for me. Automatically detect intranet network is still on
控制面板 > Internet 选项 > 安全性在高级按钮(本地 Intranet)中添加驱动器的 IP 对我有用。自动检测内网网络是否还在
回答by Don Schaefer
You can also take care of this issue with a group policy.
您还可以使用组策略处理此问题。
I made a GPO called Trusted Sitesand configured as follows.
我制作了一个名为Trusted Sites的 GPO并配置如下。
Computer Configuration -> Administration Templates -> Windows Components -> Internet Explorer -> Internet Control Panel -> Security Page
计算机配置 -> 管理模板 -> Windows 组件 -> Internet Explorer -> Internet 控制面板 -> 安全页面
On the security page, enable both of these:
Intranet Sites: Include all local (intranet) sites not listed in other zones
Intranet Sites: include all network paths (UNCs)
在安全页面上,启用这两个:
Intranet 站点:包括未在其他区域中列出的所有本地(Intranet)站点
Intranet 站点:包括所有网络路径 (UNC)
The after a couple minutes, on the server having the issue, open a command prompt and run gpupdate(no need to force this one).
几分钟后,在出现问题的服务器上,打开命令提示符并运行gpupdate(无需强制执行此操作)。
回答by mbrownnyc
I was able to do this by adding the DNS domain to the list of intranet sites.
我可以通过将 DNS 域添加到 Intranet 站点列表来做到这一点。
Using Mathijs's answer partially:
部分使用 Mathijs 的回答:
Control Panel > Internet Options > Security
or runinetcpl.cpl
- Click
Local intranet
- Click
Sites
ClickAdvanced
Add the FQDN of the server or domain. For instance, add "contoso.corp" (without double quotes), which will actually add*.contoso.corp
, "whitelisting" all hosts who's FQDN resolves to the suffixcontoso.corp
. Otherwise, you can add a full FQDN of a given server.
Control Panel > Internet Options > Security
或运行inetcpl.cpl
- 点击
Local intranet
- 单击
Sites
单击Advanced
添加服务器或域的 FQDN。例如,添加“contoso.corp”(不带双引号),这实际上会添加*.contoso.corp
“白名单”所有 FQDN 解析为后缀的主机contoso.corp
。否则,您可以添加给定服务器的完整 FQDN。
In my case, I had created a shortcut to the logon script for my users who were using software VPN clients; which was %userdnsdomain%\netlogon\login.bat
, so I added contoso.corp
and no longer received the warning.
就我而言,我为使用软件 VPN 客户端的用户创建了登录脚本的快捷方式;这是%userdnsdomain%\netlogon\login.bat
,所以我添加contoso.corp
并不再收到警告。
回答by Thinker
if you are the administrator of where you are working and you are extremely sure that applications (self written ones) are safe to launch. what you can do on win7 and win8 machines is go to Control Panel > User Accounts > Change User Account Control Settings and select "Never notify". This removes the 'extra step' when executing the file.
如果您是您工作地点的管理员,并且您非常确定应用程序(自己编写的应用程序)可以安全启动。你可以在 win7 和 win8 机器上做的是转到控制面板 > 用户帐户 > 更改用户帐户控制设置,然后选择“从不通知”。这会在执行文件时删除“额外步骤”。