Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Activate and deactivate Remote Desktop via command line!


It's easy to enable and disable Remote Desktop from the command line on MS Windows 11, 10, ... etc. and Server OS!




The remote desktop can be turned off, deactivated or activated under all Windows operating systems, especially in areas where the remote desktop could pose a security risk, the remote desktop is often deactivated, not only on Windows 11, 10, 8.1, ... but also under MS Server 2019, 2016, it can also be done in a few seconds!


Contents:

1.) ... Enable or disable RDP from the command line
2.) ... How to enable Remote Desktop with PowerShell!
3.) ... Most important remote desktop content and interesting facts!



1.) Enable or disable RDP from the command line


Run the required command from the shell or cmd with administrator rights.

Activate from the remote desktop:


reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f


Deactivating from the remote desktop:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f



2.) How to activate remote desktop with PowerShell!

Run the PowerShell with administrator rights

Activate from the remote desktop:


PS> Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0


Optional 


PS> Enable-NetFirewallRule -DisplayGroup "Remote Desktop"


PS:
Once you have completed the steps, you can use the modern Remote Desktop app, or the old Remote Desktop Connection app, to access your computer remotely even when the firewall is activated.

Deactivating from the remote desktop:



PS> Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1


Optional:
To disable Remote Desktop through Windows Firewall, type the following command and press Enter:


PS> Disable-NetFirewallRule -DisplayGroup "Remote Desktop"


After following the steps, the remote desktop feature will be disabled and the firewall port will be closed.


3.) Most important remote desktop content and interesting facts!




► Help, no remote desktop connection with Windows-10 possible?
► Open remote desktop connection or open in Windows 10!
► Allow remote desktop access to local folders under Windows!  
► Save the remote desktop connection settings in an RDP file!
► Windows keyboard commands with examples for remote desktop?
► A remote desktop shortcut or in the start menu as a tile
► What is remote access?



FAQ 95: Updated on: 1 December 2022 11:33 Windows
Windows-Console

Understand the shutdown command under MS Windows!


The Shutdown command under MS Windows 11, 10, . + MS Server is one of the most popular PC shutdown or restart command lines To use the command line,
Windows-Console

Find out with PowerShell what is preventing shutdown and standby!


It is easy to find out with PowerShell which app or program is preventing shutdown, standby or hibernation on Windows 11, 10, etc. With all Microsoft
Windows-Console

Delete partition with Diskpart under Windows 11, 10, ... and MS Server!


It is easy to delete a partition with Diskpart on all Windows 11, 10, Desktop and MS Server 2022, 2019, operating systems Contents: 1. Deleting
Windows-Console

Command line to delete empty folders Windows 11, 10, ....!


If you want to delete empty folders via command line, here is the command for all Microsofts Windows 11, 10, Desktop and MS Server OS 1. Hold down
Windows-Console

Set maximum password age / expiration date via Windows PowerShell!


Set the maximum password age or the expiration date via Windows PowerShell under MS Windows 11, 10, Desktop and MS Server If your computer is running
Windows-Console

Change Windows 11, 10, ... time zone via Terminal, Powershell, command prompt!


Its easy to change Windows 11, 10, or MS Server time zone via Terminal, Powershell, command prompt Changing the Windows time zone is sometimes faster
Windows-Console

Difference Between PowerShell and Command Prompt?


The range of commands and the options are the main difference between PowerShell and the command prompt on Windows 11, 10, and MS Server OS The MS PowerShell

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, 11, 10, console, activate, deactivate, remote, desktop, command, line, easy, enable, disable, server, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + TraceRouteOK
  + GetWindowText
  + AutoHideMouseCursor
  + Desktop.Calendar.Tray.OK
  + OK.Its.Raining.Men
  + Run-Command
  + MagicMouseTrails
  + CpuFrequenz
  + MultiClipBoardSlots
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.062


► How to add control panel to start menu in Windows 8.1/8? ◄

► Can I use the Win 7, 8.1, 10, 11 images for Windows XP? ◄

► Activate several line tabs in the Quad Explorer Q-Dir! ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....