从网络共享打开文件时的安全警告
我已经创建了一个已签名的安装可执行文件。它位于网络共享上(我使用 unc - \server\share\setup.exe 访问该网络共享)。
当我双击可执行文件时,我收到一条 Windows 警告:
Title: Open File -> Security Warning
Do you want to run this file?
Name: setup.exe
Publisher: My Company
Type: Application
From: \\Path\to\setup\folder
然后有一个黄色盾牌,上面写着“虽然来自 Internet 的文件可能有用,但此文件类型可能会损害您的计算机。仅运行来自您信任的发行商的软件。” ”在它旁边。
我猜我可以将 Windows 配置为信任我公司的软件。我还认为可以禁用特定的安全检查来消除警告。或者我可以告诉 Windows 将 UNC 路径视为本地路径。
还有其他方法可以禁用警告吗?我不希望我的客户在从网络共享安装软件时看到此警告。我不想告诉这些客户禁用某些安全检查。
I've created a setup executable which I have signed. It's located on a network share (which I access using unc - \server\share\setup.exe).
When I double click the executable file, I get a Windows warning saying:
Title: Open File -> Security Warning
Do you want to run this file?
Name: setup.exe
Publisher: My Company
Type: Application
From: \\Path\to\setup\folder
Then there's a yellow shield with the text "While files from the Internet can be useful, this file type can potentially harm your computer. only run software from publihers you trust." next to it.
I'm guessing I could configure Windows to trust software from my company. I also think that it's possible to disable specific security checks to get rid of the warning. Or I could tell Windows to consider UNC-paths local.
Is there some other method to disable the warning? I don't want my customers to see this warning when they install the software from their network share. And I don't want to tell these customers to disable certain security checks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 Internet Explorer 中:
file ://计算机名或IP
(在您的情况下file://path
)。或者,您可以取消选中自动检测 Intranet 网络,然后选中其他三个复选框。这使您不必手动输入每个计算机名称,但允许所有网络路径可能并不安全。
另请参阅
In Internet Explorer:
file://computername or IP
(in your casefile://path
).Alternatively, you may uncheck the Automatically detect intranet network, and check the other three check boxes. This saves you from having to enter each machine name manually, but allowing all network paths is probably not secure.
See also
另一种专门针对远程桌面服务的可能性是使用组策略。
1.) 在域控制器上打开组策略编辑器
2.) 创建组策略对象(例如,停用网络共享上的文件安全性)。
3.) 编辑此新对象
4.) 在用户配置下 → 管理模板 → Windows 组件 → Internet Explorer → 互联网控制面板 → 安全页面编辑站点到区域分配列表
5.) 选择激活并单击 >显示
6.) 在 valuename 下添加您的网络共享路径并将值设置为 1。1 表示本地 Intranet。
7.) 我认为启用 Intranet 站点:包括其他区域中未列出的所有本地(Intranet)站点 和 Intranet 站点:包括所有网络路径 (UNC)< /em>
8.) 然后关闭对象并将其链接到您要应用这些设置的某个用户 OU。
9.) 激活新的链接对象。
Another possibility specially for remote desktop services is to use group policies.
1.) Open the group policy editor on your domain controller
2.) Create a group policy object (e.g. deactivate file security on network share).
3.) Edit this new object
4.) Under User Configuration → Administrative Templates → Windows Components → Internet Explorer → Internet Control Panel → Security Page edit Site to Zone Assignment List
5.) Select Activate and click Show
6.) Add your network share path under valuename and set value to 1. 1 means local intranet.
7.) I think it is also a good idea to enable Intranet Sites: Include all local (intranet) sites not listed in other zones and Intranet Sites: Include all network paths (UNCs)
8.) Then close the object and link it to some user OU for which you want to apply these settings.
9.) Activate your new linked object.
许多年后......
实际上,您希望用户在安装任意软件时收到警告,尤其是通过网络安装的软件。
但您对软件进行了签名,以便每个人都可以验证它来自您并且未被篡改。已经显示了。
因此,如果您希望显示更少的警告(如果警告太多,用户无论如何都会开始忽略它们),则需要将代码签名证书添加到 Windows 信任存储区。然后 Windows 就知道是谁创建了该软件,认为它是可信的并且不会发出警告。
签名证书或 CA 证书到底如何添加到
Many years later...
Actually you want users to be warned if they install arbitrary software, especially over the network.
But you signed your software so everyone can verify it comes from you and was not tampered with. That is displayed already.
So if you want even less warnings to show up (users will start ignoring them anyway if they are too many), you need to add your code signing certificate to the Windows trust store. Then Windows knows who created the software, sees that it can be trusted and does not warn.
How exactly the signing certificate, or maybe the CA certificate gets added to