Windows Server 2012. RemoteApp — различия между версиями
Alexandre (обсуждение | вклад) |
Alexandre (обсуждение | вклад) |
||
Строка 121: | Строка 121: | ||
* [[Windows Server 2012. Настройка активированного сервера лицензирования]] | * [[Windows Server 2012. Настройка активированного сервера лицензирования]] | ||
− | [[Категория:Windows | + | [[Категория:Microsoft Windows]][[Категория:Инструкции]] |
Версия 11:14, 5 июля 2018
RemoteApp на Windows 2012 Foundation
Расписывать что такое remoteapp расписывать не будем. Для обычного пользователя эта информация не обязательна, а тем кому он действительно нужен и так должен понимать и знать что это и с чего это "едят". В любом случае, без сервера эта статья не имеет смысла.
Рассмотрим пример "Калькулятора", который в дальнейшем легко переделать например в "WinRar".
Нижеприведённое содержимое скопировать в блокнот, сохранить, переименовать в файл с расширением rdp, в строке full address вписать имя своего сервера.
redirectclipboard:i:1 redirectposdevices:i:0 redirectprinters:i:1 redirectcomports:i:1 redirectsmartcards:i:1 devicestoredirect:s:* drivestoredirect:s:* redirectdrives:i:1 session bpp:i:32 prompt for credentials on client:i:1 span monitors:i:1 use multimon:i:1 remoteapplicationmode:i:1 server port:i:3389 allow font smoothing:i:1 promptcredentialonce:i:1 authentication level:i:2 gatewayusagemethod:i:2 gatewayprofileusagemethod:i:0 gatewaycredentialssource:i:0 full address:s:TS01 alternate shell:s:||calc remoteapplicationprogram:s:||calc gatewayhostname:s: remoteapplicationname:s:Calculator remoteapplicationcmdline:s:
Далее необходимо внести изменения в реестр. Для этого также надо скопировать данные в блокнот, и сохранить с расширением reg, после чего запустить получившийся файл.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList\Applications\calc] "CommandLineSetting"=dword:00000000 "RequiredCommandLine"="" "IconIndex"=dword:00000000 "IconPath"="%SYSTEMDRIVE%\\Windows\\system32\\calc.exe" "Path"="C:\\Windows\\system32\\calc.exe" "VPath"="%SYSTEMDRIVE%\\Windows\\system32\\calc.exe" "ShowInTSWA"=dword:00000001 "Name"="Calculator" "SecurityDescriptor"=""
Пример
Теперь разберём всё это на примере WinRAR
redirectclipboard:i:1 redirectposdevices:i:0 redirectprinters:i:1 redirectcomports:i:1 redirectsmartcards:i:1 devicestoredirect:s:* drivestoredirect:s:* redirectdrives:i:1 session bpp:i:32 prompt for credentials on client:i:1 span monitors:i:1 use multimon:i:1 remoteapplicationmode:i:1 server port:i:3389 allow font smoothing:i:1 promptcredentialonce:i:1 authentication level:i:2 gatewayusagemethod:i:2 gatewayprofileusagemethod:i:0 gatewaycredentialssource:i:0 full address:s:TS01 alternate shell:s:||C:\Program Files (x86)\WinRAR\WinRAR.exe remoteapplicationprogram:s:||WinRAR gatewayhostname:s: remoteapplicationname:s:WinRAR remoteapplicationcmdline:s:
И данные, которые необходимо внести в реестр
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList\Applications\WinRAR] "CommandLineSetting"=dword:00000000 "RequiredCommandLine"="" "IconIndex"=dword:00000000 "IconPath"="%SYSTEMDRIVE%\\Program Files (x86)\\WinRAR\\WinRAR.exe" "Path"="C:\\Program Files (x86)\\WinRAR\\WinRAR.exe" "VPath"="%SYSTEMDRIVE%\\Program Files (x86)\\WinRAR\\WinRAR.exe" "ShowInTSWA"=dword:00000001 "Name"="WinRAR" "SecurityDescriptor"=""
Если провести сравниение, то в файле RDP замена происходит в стоках:
alternate shell:s: remoteapplicationprogram:s: remoteapplicationname:s:
а в REG файле в строках:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList\Applications\имя приложения] "IconPath"= "Path"= "VPath"= "Name"=
Достаточно под рукой иметь два файла, чтобы опубликовать большое количество приложений.
Этот метод "топорный" и неудобный, а также небезопасный. Для экспериментов лучше использовать виртуальную машину, затем переходить на "боевой" сервер. Проверено на клиентах Windows XP и Windows 7. В качестве рекомендации на Windows 7 желательно поставить клиента RDP 8.0