# RDS

# Блокировка входа по RDP

1. Открыть редактор групповых политик: **gpedit.msc**
2. Перейти в раздел: **Computer Configuration - Windows Settings - Security Settings - Local Policies - User Rights Assignment**
3. Открыть пункт: **Deny logon through Remote Desktop Services**
4. Добавить пользователей для блокировки
5. Закрыть групповые политики
6. Обновить политики: **gpupdate /force**

# Включение микрофона

1. Открыть групповую политику**: gpedit.msc**)
2. Перейти в раздел: **Computer Configuration -&gt; Administrative Templates -&gt; Windows Components -&gt; Remote Desktop Services -&gt; Remote Desktop Session Host**
3. Включить опцию: **Allow audio and video playback redirection**
4. Включить опцию: **Allow audio recording redirection**
5. Обновить политику: **gpupdate /force**
6. Перезапустить сервер

# Исправление буфера обмена

Создать PowerShell скрипт ([rdpclip.ps1](https://wiki.tiukov.com/attachments/1)) и внести в него следующее:

```Powershell
(Get-WmiObject -Query "select * from Win32_Process where name='RDPClip.exe'"|?{$_.GetOwner().User -eq $ENV:USERNAME}).Terminate()
rdpclip.exe
```

Запустить, когда буфер обмена перестает работать.