Skip to content

Instantly share code, notes, and snippets.

@maaduukaar
Created November 6, 2025 16:46
Show Gist options
  • Select an option

  • Save maaduukaar/883848e3b8c12832974c602a2a606a4a to your computer and use it in GitHub Desktop.

Select an option

Save maaduukaar/883848e3b8c12832974c602a2a606a4a to your computer and use it in GitHub Desktop.
clipboard
# 1. Включить удалённые подключения
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 0
# 2. Разрешить RDP через брандмауэр
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
# 3. (опционально) Включить службу RDP, если она выключена
Set-Service -Name TermService -StartupType Automatic
Start-Service -Name TermService
Get-NetFirewallRule -DisplayGroup "Remote Desktop"
Get-Service TermService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment