---
title: "远程桌面连接后Desktop没有托盘图标的解决方案"
author: "explorer"
date: "2012-03-10T20:02:33Z"
tags: []
categories: ["操作系统"]
slug: "desktop"
draft: false
lastmod: "2012-03-10T20:02:33Z"
id: 1449919
url: "https://explorer.iteye.com/blog/1449919"
---

**缘由：**

 

我们的某 services应用会在服务启动后在系统托盘区域创建一个图标，方便打开界面配置。但是一般情况下此应用部署在后台server上，IT管理员都是使用 远程桌面连接至server 进行管理， 但是远程桌面登录入windows后的桌面看不到该应用的托盘图标。

 

 **解决方法：**

 

如果客户端机器使用的是mstsc v6.1以上 (XP sp3 / Vista sp1 / Server 2008)， 使用 mstsc.exe /admin  ； 如果是老版本的windows，使用 mstsc.exe /console 。 带上/admin 参数后连接服务器， 将把服务器的console session带到本地， 看起来就和本机登录的效果一样的。

 

**原因：**

 

默认情况下mstsc (远程桌面/终端服务客户端) 连接到目标机器后，开启的回话(session)是单独创建的，与机器自身登录后在显示屏上看到的console session是隔绝的。

 

 **备注：**

根据msdn描述，目标机器只有 win2003以上才可以看到此效果，如果连接的是win 2000的机器是不行的。

远程桌面程序默认是在 %SYSTEMROOT%/system32/mstsc.exe， 也可以在开始菜单－运行－直接输入 mstsc /admin 开启。

 

**参考：**

 1.  How to Connect to and Shadow the Console Session with Windows Server 2003 Terminal Services

http://support.microsoft.com/kb/278845

 

2\. Remote Desktop Services (Terminal Services) Team Blog - Changes to Remote Administration in Windows Server 2008

http://blogs.msdn.com/rds/archive/2007/12/17/changes-to-remote-administration-in-windows-server-2008.aspx

 

3\. You cannot use Mstsc.exe with the /CONSOLE switch to connect to a console session on a Windows 2000 Server-based computer  
http://support.microsoft.com/kb/311926

4\. You cannot connect to a console session of a local computer by using a console session of a remote Windows Small Business Server 2003-based computer  
http://support.microsoft.com/kb/829035