Как изменить значок rdp

Можно ли изменить значок для опубликованного RemoteApp? Да, можно.

Можно ли изменить значок для опубликованного RemoteApp? Да, можно.

Откройте Powershell и введите следующую команду:

Get-RDRemoteApp -alias "notepad" | fl

Это покажет все свойства для RemoteApp с псевдонимом “notepad”:

CollectionName : RemoteApps
Alias : notepad
DisplayName : Windows Update Log
FolderName : Logfiles
FilePath : C:WindowsSystem32notepad.exe
FileVirtualPath : C:WindowsSystem32notepad.exe
CommandLineSetting : Require
RequiredCommandLine : c:windowswindowsupdate.log
IconContents : {0, 0, 1, 0...}
IconIndex : 0
IconPath : C:WindowsSystem32notepad.exe
UserGroups :
ShowInWebAccess : True

Итак, глядя на эти свойства, мы можем изменить значок здесь! В пользовательском интерфейсе это невозможно.

Есть 2 варианта для управления значком:

IconIndex: the index for the icon you wish to show (0 if only 1 icon is available)
IconPath: the container holding the icon(s)

Параметр IconPath может указывать на файл .exe,. ico или .dll.

Давайте изменим иконку на иконку из shell32.dll-да. Почему? Потому что я точно знаю, что этот файл доступен на всех установках Windows.

Создайте фиктивный ярлык или выберите существующий. Измените значок и перейдите к следующему пункту c:windowssystem32-да. Выберите shell32.dll и выберите значок Центра Обновления Windows.

Custom Icons in published RemoteApp Programs 01

IconIndex для этого интерфейса работает сверху вниз, начиная с 0. Поэтому считайте строки, пока не увидите нужный значок, умножьте его на 4, вычитайте 1 и сосчитайте до нужного значка. IconIndex для значка Центра Обновления Windows — 46.

Введите одну из следующих команд в поле Powershell:

Get-RDRemoteApp -Alias "notepad" | Set-RDRemoteApp -IconPath "c:windowssystem32shell32.dll" -IconIndex 46

или

Set-RDRemoteApp -CollectionName "RemoteApps" -Alias "notepad" -IconPath "c:windowssystem32shell32.dll" -IconIndex 46

Теперь обновите страницу RD Web Access:

Custom Icons in published RemoteApp Programs 02

И вот оно у вас есть: пользовательские иконки в программах RemoteApp.

Обновление:
Как говорит Крис Бигг в комментариях, если у вас есть файл.ico, нет необходимости использовать powershell для изменения значка.
Перейдите к файлу %WINDIR%RemotePackagesCPubFarmsCPubRemoteApps на сервере с ролью посредника подключений к удаленному рабочему столу, и вы увидите все файлы .ico. В примере для журнала обновления Windows я бы удалил «notepad .ico” и вместо этого скопировал файл.ico по моему выбору и переименовал его в “notepad.ico”.
Это заменит значок RemoteApp в вашем приложении Remote Apps and Desktop Connections при следующем обновлении. Для веб-доступа к удаленным рабочим столам необходимо остановить и запустить веб-приложение на сервере веб-доступа к удаленным рабочим столам.
Это будет работать только для файлов. ico. Если ваш значок находится в файле. exe или.dll, вам все равно придется использовать powershell.

Переведено машиной и адаптировано, за текст спасибо Arjan

Join @AdmNtsRu on Telegram

Смотрите также:

RRS feed

  • Remove From My Forums
  • General discussion

  • Is it possible to change icon for already published RemoteApp? I didn’t find any simple solution, e.g. a button in RemoteApp Properties Dialog Box.

All replies

  • Does anybode have a Change Icon button in RemoteApp Properties Dialog Box? It seems that such a button exists in
    Windows Server 2008 R2 — at least few posts in this forum mentions it. 

    But how I can manage it in Windows Server 2012?

  • Hi,

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.

    Regards,

    Clarence

    TechNet Subscriber Support

    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Hello Clarence,

    I tried to find any relevant info regarding a change of RemoteApp icon published via RD Web in Windows Server 2012, but found nothing.

    You gave me at least some hope that I will find a solution, so looking forward to seeing some hints here.

    Kasparek

  • Hi,

    Based on my internal test, I am afraid that it seems we couldn’t directly change the RemoteApp icon in RDWeb, but there is a workaround as below:

    —On one Windwos 7 or Windows 8 client, open Control Panel and open RemoteApp and Desktop Connections.

    —Type the right URL, such as https://RDWeb FQDN name/rdweb/feed/webfeed.aspx.

    —When the connection finishes, the published RemoteApp icon will locate at c:users%username%AppDataRoamingMicrosoftWindowsStart MenuProgramsRemoteApp and Desktop ConnectionsWork Resources

    —Right click the specific RemoteApp you want change icon and click Properties.

    —Under Shortcut table, please click Change Icon and select the icon you want.

    Regards, 


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Hello,

    I tried the workaround, but if I am not mistaken, it changes an icon just on Windows 7 (8) client, on which I setup RemoteApp via RD Web feed.

    But I would need to change an icon on RD Web page, i.e. an icon that is seen by all users when they log on to RD Web via a web browser.

    Regards,

    Kasparek

  • Hi,

    Based on my test, I think below steps can achieve your goal:

    —Please prepare a .ico file you want, such as a (bing.ico file). You can search *.ico on the C drive and find the icon file you want.

    —I suspect you have published a Wordpad on the Windows Server 2012 Connection Broker server, then locate to C:WindowsRemotePackagesCPubFarmsRemoteApp_applicCPubRemoteApps.

    —Under this folder, we can see that the published WordPad ico file(such as wordpad.ico), then copy the specific ico(bing.ico) file you want to this folder, and rename the bing.ico file to Wordpad.ico.

    —Restart the Windows Server 2012 Connection Broker server and try to reproduce the issue, this should works.

    Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Replacing a corresponding icon in C:WindowsRemotePackagesCPubFarmsRemoteApp_applicCPubRemoteApps changes an icon for RemoteApp on RD Web Work Resources page. Great, it solved my situation, thanks for your help.

    I have got one more problem connected to RD Web Work Resources page. In the past I did a few configuration changes in RD Web Server and RemoteApps (renamed a server, removed all published RemoteApps from QuickSessionCollection, then I re-added Remote Desktop
    Services — option Quick Start — role) and as a result I have a redundant Remote Desktop RemoteApp on my RD Web Work Resources page. This Remote Desktop RemoteApp is not present on QuickSessionCollection list and in addition it opens Remote Desktop to
    a server with a wrong hostname — i. e. to a hostname before I renamed the server. I would call this RemoteApp as a ‘left-over’.

    Wouldn’t you know, how to remove it?

  • Hi, Have you restarted the Connection Broker server to have a try? Besides, do you mean there is only one server which has installed RDS/RDWeb/RD Connection Broker roles? Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • The Connection Broker server was restarted several times, but it didn’t resulted in redundant RemoteApp disappearing. Yes, all Remote Desktop services reside on one server/host. 

  • Hi,

    In Windows Server 2012, there is a new feature for the RDWeb, that is we can enable RDWeb logging which is very helpful for troubleshooting problems with RD Web page.

    To enable RD Web logging, do the following:
    1. Logon to the RD Web server as an administrator and open an administrative Windows Powershell prompt or command prompt.
    2. Change to the %SYSTEMROOT%WebRDweb folder.
    3. Open the web.config file and find the section labeled <system.diagnostics>.
    4. Modify the TraceTSWA value to 4:
    <add name=»TraceTSWA» value=»4″ />
    5. Comments are denoted by <!— and —> characters. To remove the comments and enable RD Web logging, modify the following line to remove the comments:
                    <!— Uncomment for file tracing
          <add name=»FileLog»
           type=»Microsoft.VisualBasic.Logging.FileLogTraceListener,
           Microsoft.VisualBasic, Version=8.0.0.0,
           Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,
           processorArchitecture=MSIL»
           initializeData=»FileLogWriter» BaseFileName=»RDWeb»
           Location=»Custom»
       LogFileCreationSchedule=»Daily»
       MaxFileSize=»50000000″
           CustomLocation=»WindowsWebRDWebApp_Data» />
          —>
    For example:
          <add name=»FileLog»
           type=»Microsoft.VisualBasic.Logging.FileLogTraceListener,
           Microsoft.VisualBasic, Version=8.0.0.0,
           Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,
           processorArchitecture=MSIL»
           initializeData=»FileLogWriter» BaseFileName=»RDWeb»
           Location=»Custom»
       LogFileCreationSchedule=»Daily»
       MaxFileSize=»50000000″
           CustomLocation=»WindowsWebRDWebApp_Data» />
    6. Reload the web page and reproduce the problem.
    7. The log file will be created in the %SYSTEMROOT%WebRDWebApp_Data folder and will contain the time and date stamp of when the log file was written.
    8. Please share these logs to us.

    Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • I enabled the logging, but didn’t find any useful info in a log file, just that ‘Remote Desktop’ application (and others) was added.

    My RD Web Work Resources page incorporates the following RemoteApps:

    But RemoteApps Programs in Server Manager doesn’t incorporate ‘Remote Desktop’ application (Windows Explorer is under My Programs folder):

    In addition, when I launch ‘Remote Desktop’ application it opens Remote Desktop to non-existing host — RD Web server was renamed.

    ‘Remote Desktop Connection’ application (vs ‘Remote Desktop’ application) was added among published applications manually by me and works fine.

    Where does ‘Remote Desktop’ application come from? How I can remove it from Work Resources page. It is quite confusing for users, particularly when it tries to open RD session to non-existing host.

  • Hi,

    OK, now I understand your main concern is the redundant ‘Remote Desktop’ icon. Since there is not any suspected log in RDWeb logging, let’s try to enable the RDMS UI Tracing on the RD Connection Broker Server.

    When troubleshooting any problem with Remote Desktop Services installation or Collection Creation, or RD Connection Broker issues, the RDMS UI Logs should be enabled. RDMS UI logs must be enabled
    by using Event Viewer and adding a SYSTEM environment variable to the Connection Broker (RDMS) server.

    To enable RDMS UI log and Event Logs, do the following:

    a. Open an administrative CMD prompt and create a system environment variable named
    RDMSUI_TRACING and set the value to 1

    b. Launch Server Manager from the same CMD window by entering servermanager and then pressing Enter.

    c. Open Event Viewer, click View in the Menu Bar, and then click Show Analytic and Debug Logs.

    d. In Event Viewer, navigate to the following path: Applications and Services LogsMicrosoftWindowsRDMS-UIDebug. Right click
    on Debug log and select Enable Log.

    e. Reproduce the issue and check whether there are any related event logs.

    Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • So I switched on Debug Log for RDMS, but the only error I was able to find is:

    Component RdmsUI: Error in script execution on rdweb.domainname.tld : 

    Component RdmsUI: Failed to fetch local DB connection string from server: rdweb.domainname.tld : System.Management.Automation.RemoteException: Property DBConnString does not exist at path HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTssdisParameters.
       at Microsoft.RemoteDesktopServices.Common.DeploymentModel.ExecutePowerShellScript(String serverName, String script, Object argumentList, Boolean isLocalhost)
       at Microsoft.RemoteDesktopServices.Common.DeploymentModel.IsHighAvailabilityConfigured(String managementServer)

    I do not have any idea if this is connected to my problem, because it appears in the log in times when I didn’t log to RD Web. In addition, it doesn’t give me any clue what I should do to narrow my situation.

    Doesn’t anybody have an advice of type — open a file/a registry key, check/delete a value?

  • Hi,

    It seems the RDMS error log didn’t related with the duplicate «Remote Desktop» icon.

    From the previous screenshot, I noticed that the Windows Explorer RemoteApp didn’t show in RDWeb, please try to hide all the RemoteApp and check whether the duplicate Remote Desktop icon still persists.

    Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • I also have this exact same issue.

    Old Published ICONS showing up and I cant get rid of them

  • The only thing i’ve found so far is a workaround (bodge) Script the launch using vbscript and use VBsedit to create an executable with your favourite icon embedded….

    Regards


    Glenn Rose-Ward

  • Get-RDRemoteApp -Alias «[The alias of your app]» | Set-RDRemoteApp -IconPath «[C:your_icon_file.ico]» -CollectionName «QuickSessionCollection»

    Example:

    Get-RDRemoteApp -Alias «iexplore» | Set-RDRemoteApp -IconPath «C:icon_file.ico» -CollectionName «QuickSessionCollection»

    Works like a charm

  • Thank you. Such great example and worked for me :)

As I was doing Step by Step Windows 2012 R2 Remote Desktop Services – Part 4, which is all about publishing RemoteApp programs I figured I’d put this in a separate post.

Can we change the icon for a Published RemoteApp? Yes we can.

Open an administrative Powershell prompt and type the following command:

Get-RDRemoteApp -alias "notepad" | fl

This will show all properties for the RemoteApp with “notepad” as alias:

CollectionName      : RemoteApps
Alias               : notepad
DisplayName         : Windows Update Log
FolderName          : Logfiles
FilePath            : C:WindowsSystem32notepad.exe
FileVirtualPath     : C:WindowsSystem32notepad.exe
CommandLineSetting  : Require
RequiredCommandLine : c:windowswindowsupdate.log
IconContents        : {0, 0, 1, 0...}
IconIndex           : 0
IconPath            : C:WindowsSystem32notepad.exe
UserGroups          :
ShowInWebAccess     : True

So, looking at these properties we are able to change the icon here! This isn’t possible in the UI.

There are 2 properties to manipulate the icon:

IconIndex:          the index for the icon you wish to show (0 if only 1 icon is available)
IconPath:           the container holding the icon(s)

The IconPath setting can point to a .exe, a .ico, or a .dll file.

Let’s change the icon to an icon from shell32.dll. Why? Because I know for sure this file is available on all Windows installations.

Create a dummy shortcut or select an existing one. Change the icon and browse to c:windowssystem32. Select shell32.dll and select the Windows Update icon.

Custom Icons in published RemoteApp Programs 01
The IconIndex for this interface works top to bottom, starting with 0. So count the rows until you see your desired icon, multiply this by 4, subtract 1, and count up to your desired icon. The IconIndex for the Windows Update icon turns out to be 46.

Type one of the following commands in the Powershell box:

Get-RDRemoteApp -Alias "notepad" | Set-RDRemoteApp -IconPath "c:windowssystem32shell32.dll" -IconIndex 46

or

Set-RDRemoteApp -CollectionName "RemoteApps" -Alias "notepad" -IconPath "c:windowssystem32shell32.dll" -IconIndex 46

Now reload the RD Web Access:
Custom Icons in published RemoteApp Programs 02
And there you have it: Custom icons on RemoteApp programs.

Update:
As Chris Bigg says in the comments, if you have a .ico file there’s no need to use powershell to change the icon.
Browse to %WINDIR%RemotePackagesCPubFarmsCPubRemoteApps on the server holding the RD Connection Broker role and you will see all the .ico files. In the example for Windows Update Log I’d remove “notepad.ico” and instead copy a .ico file of my choice and rename it to “notepad.ico”.
This will replace the icon for the RemoteApp in your Remote Apps and Desktop Connections application on next refresh. For RD Web Access you’ll have to stop and start the Web application on the RD Web Access server.
This will only work for .ico files. If your icon is in a .exe or .dll you’ll still have to use powershell.

Arjan

   dis12345

05.12.11 — 13:17

Пользователю надо входить в 1 и ту же базу 1с на термин сервере в разделенном режиме и иногда монопольно. 1с назначена средой, при подключении RDP стартует батник с параметрами (режим, база, имя юзера, пароль). Можно ли как то сохранять параметр подключения: «имя пользователя терминального сервера» в разные места, чтоб у 1 го и того же юзера стартовал батник с параметром /М а по 2-му ярлыку (с другим именем пользователя) без параметра монопольно, а то все параметры сохраняются в default, а имя неизвестно куда… (и на обоих ярлыках оно одинаковое)  mtsc 6.1

   Voronve

1 — 05.12.11 — 13:21

(0) Создание 2х разных юзеров на терминальном сервере и соответствующая настройка ярkыков у пользователя спасут отца ?

   dis12345

2 — 05.12.11 — 13:24

так и сделал, но в сохраненном ярлыке запомнается только 1 имя юзера, во втором ярлыке- он же. При смене и сохранении имени 2-го меняется и 1-е имя

   Voronve

3 — 05.12.11 — 13:25

(2) Настройка ярлыка. Сохранить как. В разные папки.

   dis12345

4 — 05.12.11 — 13:27

(3) имя юзера НЕ привязано к папке…., остальные параметры- да.

   Скептик

5 — 05.12.11 — 13:44

В hosts.ini завести синонимы для сервера.

Неудобно, но практично.

   Скептик

6 — 05.12.11 — 13:45

Заодно, кстати, сильно облегчается навигация среди нескольких открытых RDP — просто по заголовкам их окошек.

   Ковычки

7 — 05.12.11 — 13:45

отдать среду пользователю или в качестве шела обертку

   Ковычки

8 — 05.12.11 — 13:46

сохранять надо не ярлык, а рдп файл

   Ковычки

9 — 05.12.11 — 13:46

+ со старой оболочкой

   dis12345

10 — 05.12.11 — 13:47

(5) а можно чуть подробнее, не слышал про такое

(8) в RDP файле имени юзера НЕТ:

screen mode id:i:2

use multimon:i:0

desktopwidth:i:1280

desktopheight:i:1024

session bpp:i:32

winposstr:s:0,1,0,0,800,600

compression:i:1

keyboardhook:i:2

audiocapturemode:i:0

videoplaybackmode:i:1

connection type:i:6

displayconnectionbar:i:1

disable wallpaper:i:0

allow font smoothing:i:1

allow desktop composition:i:1

disable full window drag:i:0

disable menu anims:i:0

disable themes:i:0

disable cursor setting:i:0

bitmapcachepersistenable:i:1

full address:s:server

audiomode:i:0

redirectprinters:i:1

redirectcomports:i:0

redirectsmartcards:i:1

redirectclipboard:i:1

redirectposdevices:i:0

redirectdirectx:i:1

autoreconnection enabled:i:1

authentication level:i:0

prompt for credentials:i:0

negotiate security layer:i:1

remoteapplicationmode:i:0

alternate shell:s:c:1c.bat

shell working directory:s:

gatewayhostname:s:

gatewayusagemethod:i:4

gatewaycredentialssource:i:4

gatewayprofileusagemethod:i:0

promptcredentialonce:i:1

use redirection server name:i:0

drivestoredirect:s:

   Ковычки

11 — 05.12.11 — 13:50

в рдп файле вполне может присутствовать пользователь пользователь

   Ковычки

12 — 05.12.11 — 13:54

добавь строчку

username:s:Васисуалий Лоханкин

   dis12345

13 — 05.12.11 — 13:54

(11) у неня его там нет…

если не трудно, приведите Вашу строку с сохраненным именем, плиз ….

   Скептик

14 — 05.12.11 — 13:55

Да там всё просто:

%Systemroot%System32DriversEtcHosts (без .ini, конечено же, просто «hosts»)

Структура файла очевидна и даже документирована в заголовке — имя_синонима реальный_IP

Делаем множество кличек (например, Katya, Kolya, Andrey), ссылающихся на один и тот же адрес.

Соответственно, создавая ярлычки RDP указываешь потом эти клички вместо реального адреса сервера — получаем то что хотели, то есть хранение как будто бы «разных кортежей User — Server», что нас и спасает.

Попутно получаем прелесть внятного заголовка на каждом отдельном окошке RDP (там ведь как раз пишется имя «сервера», к которому окошко ведёт).

P.S. Изменения в hosts вступают в силу после перезагрузки (или ipconfig /flushdns)

   Ковычки

15 — 05.12.11 — 13:55

а в пакетнике на стороне сервера вполне можно определить из какого ярлыка его запустили

   Ковычки

16 — 05.12.11 — 14:02

при желании можно и пароль сохранить в рдп файле

   Ковычки

17 — 05.12.11 — 14:02

   dis12345

18 — 05.12.11 — 14:10

О! всем большое спасибо!! Буду разбираться !!!

  

1Сергей

19 — 05.12.11 — 16:00

два батника сделать не судьба?

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Как изменить значок pdf на рабочем столе
  • Как изменить значок microsoft store
  • Как изменить значок libreoffice
  • Как изменить значок html файла
  • Как изменить значок finder

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии