Created
November 6, 2025 16:46
-
-
Save maaduukaar/883848e3b8c12832974c602a2a606a4a to your computer and use it in GitHub Desktop.
clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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