Thứ Ba, 10 tháng 6, 2025

Change the RDP port

A batch script to change the RDP port with the following steps:

  1. Check if the script is running as administrator; if not, restart with administrator privileges.
  2. Prompt the user to input the desired RDP port.
  3. Back up the current RDP registry settings in the same location as the batch script.
  4. Modify the RDP port in the registry and ensure RDP is enabled.
  5. Allow the specified port through Windows Firewall inbound rules.
  6. Display a confirmation message upon completion and require a key press to exit

0 nhận xét :

Đăng nhận xét