но не получается настроит RDP через Powershell
ошибка возникает из-за попытки
Modify the firewall exception setting.
второй параметр «1» в
_.SetAllowTsConnections(1,1) – «Ошибка»
_.SetAllowTsConnections(1,0) – команда выполняется, но толку все равно нет к контейнеру не достучаться.
Подскажите, кто может.
# Enable Remote Desktop
(Get-WmiObject Win32_TerminalServiceSetting -Namespace root\cimv2\TerminalServices).SetAllowTsConnections(1,1) | Out-Null
(Get-WmiObject -Class "Win32_TSGeneralSetting" -Namespace root\cimv2\TerminalServices -Filter "TerminalName='RDP-tcp'").SetUserAuthenticationRequired(0) | Out-Null
Get-NetFirewallRule -DisplayName "Remote Desktop*" | Set-NetFirewallRule -enabled true