如何:取消阻止在 Windows Server 上下载远程工具How to: Unblock the download of the remote tools on Windows Server

Windows Server 上 Internet Explorer 中的默认安全设置可能会使下载组件(如远程工具)变得很耗时。The default security settings in Internet Explorer on Windows Server can make it time-consuming to download components such as the remote tools.

  • Internet Explorer 上启用了增强的安全配置,除非显式允许包含资源的域(即受信任域),否则它会阻止你打开网站和访问 Web 资源。Enhanced Security Configuration is enabled on Internet Explorer, which prevents you from opening websites and accessing web resources unless the domain containing the resource is explicitly allowed (that is, trusted). 尽管可禁用此设置,但建议不要这样做,因为这可能会带来安全风险。Although you can disable this setting, we don't recommend it because it can present a security risk.

  • 在 Windows Server 2016 上,“Internet 选项” > “安全性” > “Internet” > “自定义级别” > “下载”中的默认设置也会禁用文件下载 。On Windows Server 2016, a default setting in Internet Options > Security > Internet > Custom Level > Downloads also disables file downloads. 如果选择直接在 Windows Server 上下载远程工具,则必须启用文件下载。If you choose to download the remote tools directly on Windows Server, you must enable file download.

若要在 Windows Server 上下载工具,建议执行以下操作之一:To download the tools on Windows Server, we recommend one of the following actions:

  • 在另一台计算机(例如运行 Visual Studio 的计算机)上下载远程工具,然后将 .exe 文件复制到 Windows Server。Download the remote tools on a different computer such as the one running Visual Studio, and then copy the .exe file to Windows Server.

  • 从 Visual Studio 计算机上的文件共享运行远程调试器。Run the remote debugger from a file share on your Visual Studio machine.

  • 直接在 Windows Server 上下载远程工具,并接受提示以添加受信任的站点。Download the remote tools directly on Windows Server and accept the prompts to add trusted sites. 新式网站通常包含许多第三方资源,这可能导致出现很多提示。Modern websites often include many third-party resources, which can result in many prompts. 而且,可能需要手动添加任何重定向的链接。Also, any redirected links may need to be added manually. 开始下载之前,可以选择添加一些受信任的站点。You can choose to add some of the trusted sites before beginning the download. 转到“Internet 选项”>“安全性”>“受信任的站点”>“站点”,然后添加以下站点。Go to Internet Options > Security > Trusted Sites > Sites and add the following sites.

    • visualstudio.microsoft.comvisualstudio.microsoft.com
    • download.visualstudio.microsoft.comdownload.visualstudio.microsoft.com
    • about:blankabout:blank

    对于 my.visualstudio.com 上较早版本的调试程序,请添加下列附加站点来确保登录成功:For older versions of the debugger on my.visualstudio.com, add these other sites to make sure that login is successful:

    • microsoft.commicrosoft.com

    • go.microsoft.comgo.microsoft.com

    • download.microsoft.comdownload.microsoft.com

    • my.visualstudio.commy.visualstudio.com

    • login.microsoftonline.comlogin.microsoftonline.com

    • login.live.comlogin.live.com

    • secure.aadcdn.microsoftonline-p.comsecure.aadcdn.microsoftonline-p.com

    • msft.sts.microsoft.commsft.sts.microsoft.com

    • auth.gfx.msauth.gfx.ms

    • app.vssps.visualstudio.comapp.vssps.visualstudio.com

    • vlscppe.microsoft.comvlscppe.microsoft.com

    • query.prod.cms.rt.microsoft.comquery.prod.cms.rt.microsoft.com

      如果选择在下载远程工具时添加这些域,请在出现提示时选择“添加”。If you choose to add these domains while downloading the remote tools, then choose Add when prompted.

      “已阻止内容”对话框

      下载软件时,会收到授权加载各种网站脚本和资源的请求。When you download the software, you get more requests to grant permission to load various web site scripts and resources. 建议在 my.visualstudio.com 上添加其他域,以确保登录成功。On my.visualstudio.com, we recommend that you add the extra domains to make sure that login is successful.