How to Use PowerShell to Enable Remote Desktop | Windows 10 / 11

Опубликовано: 08 Сентябрь 2026
на канале: DO IT / mostafa ahmed
1,153
4

In this video I explain how to enable remote desktop using command through PowerShell. There are many different ways to enable remote desktop but you can also use PowerShell to enable and disable remote desktop. This method works with Windows 10 and 11.
Command to enable remote desktop:
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0
Command to disable remote desktop:
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1
The steps are very simple, follow the video and I am waiting for any inquiries in the comments.

Chapters:
00:00 - Intro: Gaining control over your Windows 10 network traffic
00:19 - Use Case: Why you might need to open or close specific firewall ports
00:46 - Step 1: Accessing Windows Settings to manage system updates and security
01:08 - Step 2: Navigating to the Windows Security section
01:21 - Step 3: Opening the Firewall & network protection settings
01:36 - Step 4: Accessing Advanced Settings for detailed port management
02:05 - Step 5: Creating a "New Rule" for Inbound connections
02:18 - Step 6: Specifying the port number (e.g., 5000) for your new rule
02:37 - Step 7: Configuring the rule action to allow the connection
02:56 - Verification: Naming your rule and confirming its active status
03:18 - Summary: Deleting or disabling rules to reclaim system security

Join Our IT Forum :   / doit.it.community  


Related videos: 🔻🔻🔻🔻🔻🔻🔻🔻🔻
🎥 Create GPO to Allow Domain Users To Adjust Date And Time :    • Create GPO to Allow Domain Users To Adjust...  
🎥 GPO to Remove All Programs From The Start Menu :    • Create a GPO to Remove All Programs From T...  
🎥 GPO to prevent domain users from Clear Browsing History on Chrome :    • GPO to prevent domain users from Clear Bro...  
🎥 Create GPO to Lock Screen For Domain Users After a Specified Time of Inactivity :    • How to Create GPO to Lock Screen For Domai...  
🎥 Automatically Shutdown Client Computer After Working Hours Using GPO :    • Automatically Shutdown Client Computer Aft...  
🎥 GPO to Block Developer Mode for Windows 11 Domain Users :    • Create GPO to Block Developer Mode for Win...  
🔺🔺🔺🔺🔺🔺🔺🔺🔺🔺
📌 If you find this video helpful, don’t forget to *like, share, and subscribe* to my channel for more IT tips and tutorials! 😊
----------------------------------------------------------------------------------------------------------------
#howto #windows #remotedesktop #windowstutorials #windows10 #windows10tips #windows10tutorial #windows10tricks #windows11 #windows11tutorial #windows11tips #windows11error #doit_mostafa
How to Use PowerShell to Enable Remote Desktopon Windows 10, 11,
How to enable Remote Desktop using Powershell,
Enable Remote Desktop from PowerShell,
Disable Remote Desktop from PowerShell,
How to enable Remote Desktop on Windows 11,
How to disable Remote Desktop on Windows 11,
Best Way to Enable Remote Desktop on Windows 11 / 10,
Enable RDP via PowerShell,
Allow remote connections using PowerShell,
How to Enable or Disable Remote Desktop in Windows 11 Using PowerShell,
How to Turn off Remote Desktop on Windows Using PowerShell,
How to Turn on Remote Desktop on Windows Using PowerShell,
----------------------------------------------------------------------------------------------------------------
Can See More Videos:    / @doitmostafaahmed  
----------------------------------------------------------------------------------------------------------------
Music In Video : https://www.youtube.com/audiolibrary_...
-----------------------------------------------------------------------------------------------------------
Thanks for watching
Please Like and Subscribe
Thank you for the support
SHARE, SUPPORT, SUBSCRIBE