服务器远程桌面没有图标,连接到远程应用程序时没有连接图标 - Windows Server | Microsoft Docs...

使用远程桌面 Web Access 连接到远程应用程序时,通知区域中不显示"已连接"图标

09/18/2020

本文内容

本文提供了一种解决方法,用于解决在使用远程桌面 Web Access 连接到远程应用程序时"已连接"图标未显示在通知区域中的问题。

适用于:  Windows Server 2012R2

原始 KB 编号:   977507

症状

在运行 Windows Server 2008 R2 的计算机上使用远程桌面 Web Access (RD Web Access) 连接到远程应用程序时,"连接的"图标不会显示在通知区域中。

备注

首次运行远程应用程序时,"已 连接 "图标将显示在通知区域中。

WebSSO (Web 单一登录) 无法如期工作,导致在通过 Windows Server 2008 R2 中通过远程桌面 Web 访问发布的 RemoteApps 启动的应用程序中出现凭据的"双重提示"。

原因

当客户端计算机上存在多个未更新的 Cookie 时,会出现此问题。

解决方法

若要解决此问题,请删除 Cookie。

若要删除网站中的Windows Internet Explorer 8,请按照以下步骤操作:

单击 "开始",单击 "控制面板",单击"网络和 Internet 连接", 然后单击 "Internet 选项"。

在"常规 "选项卡上,单击"删除 "。

若要仅删除 Cookie,请单击以选中 "Cookie" 复选框,然后单击以清除所有其他复选框。

单击“删除”。

删除 Cookie 的另一个选项是更改 RD C:\windows\Web\RDWeb\Pages\renderscripts.js上的脚本文件。

若要更改脚本文件C:\windows\Web\RDWeb\Pages\renderscripts.js,请按照以下步骤操作:

以本地桌面 Web 访问服务器中的成员管理员组。

浏览到以下 jscript 文件,右键单击并选择"编辑"。

C:\windows\Web\RDWeb\Pages\renderscripts.js

在 jscript 文件中查找以下函数的实现。

函数 getCookieContents (strNameOfCookie)

修改 jscript 文件的代码以匹配以下内容:

文件Renderscripts.js代码:

function getCookieContents(strNameOfCookie)

{

var objCookie;

var objCookieName;

var objCookieContents = null;

if ( strNameOfCookie != null &&

strNameOfCookie != "" &&

document.cookie.length > 0 )

{

var objCookies = document.cookie.split(";");

for (var iIndex = 0; iIndex < objCookies.length; iIndex++)

{

objCookie = objCookies[iIndex];

objCookieName = objCookie.substring(0, strNameOfCookie.length);

}

}

}

更改文件Renderscripts.js部分,以匹配以下内容:

// Add a function called trim as a method of the prototype

// object of the String constructor.

String.prototype.trim = function()

{

// Use a regular expression to replace leading and trailing

// spaces with the empty string

return this.replace(/(^\s*)|(\s*$)/g, "");

}

// End of the new-added function

function getCookieContents(strNameOfCookie)

{

var objCookie;

var objCookieName;

var objCookieContents = null;

if ( strNameOfCookie != null &&

strNameOfCookie != "" &&

document.cookie.length > 0 )

{

var objCookies = document.cookie.split(";");

for (var iIndex = 0; iIndex < objCookies.length; iIndex++)

{

objCookie = objCookies[iIndex];

objCookie = objCookie.trim(); //Calling the new-added function

objCookieName = objCookie.substring(0, strNameOfCookie.length);

}

}

}

问题是否已修复?

检查问题是否已修复。 如果问题已解决,则已完成本节。 如果问题未解决,可以联系 支持人员。

更多信息

如果满足以下条件,则可能会发生此问题:

远程桌面 Web Access 位于具有父域的子域中。

父域或任何其他子域写入一个将域设置为父域级别的 Cookie。 此行为在所有子域之间共享 Cookie。

如果将远程桌面 Web Access 置于父域级别,则连接图标将显示在通知区域中。 此外,在连接到 (SSO) 、远程应用程序和桌面连接功能时,单一登录将正常工作。

此外,当 Web 服务器向客户端呈现的 Cookie 中包含其他 Cookie 信息时,也会出现此情况。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值