Скрипт на powershell, изменение политики домена
Нужен скрипт на powershell. Исполняемый файл может быть любого расширения (bat, exe)
В групповой политике ДОМЕНА должны произойти следующие изменения:
1. Computer Configuration -> Policies -> Windows Settings -> Windows Firewall with Advanced Security ->
-> Windows Firewall with Advanced Security -> Inbound Rules
Добавить правило для порта:
Порт: TCP 3389
Allow the connection
Domain, Private, Public – включены
Имя правила: RDP
2. Computer Configuration -> Policies -> Administrative Templates -> Network -> Network Connections ->
-> Windows Firewall -> Domain Profile
Сконфигурировать: Windows Firewall: Allow inbound Remote Desctope exceptions – Enable
3. Computer Configuration -> Policies -> Administrative Templates -> Windows Components ->
-> Remote Desctop Services -> Remote Desctop Session Host -> Connections
Сконфигурировать: Allow users to connect remotely by using Remote Desctop Services – Enable
4. К редактируемой групповой политике применяется опция "Enforced"
5. gpupdate /force