A batch script to change the RDP port with the following steps:
- Check if the script is running as administrator; if not, restart with administrator privileges.
- Prompt the user to input the desired RDP port.
- Back up the current RDP registry settings in the same location as the batch script.
- Modify the RDP port in the registry and ensure RDP is enabled.
- Allow the specified port through Windows Firewall inbound rules.
- Display a confirmation message upon completion and require a key press to exit
0 nhận xét :
Đăng nhận xét