RDP2 #17
This file contains 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
name: RDP2 | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: windows-latest | |
timeout-minutes: 9999 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy NSSM & Ngrok to Windows Directory. | |
run: | | |
copy nssm.exe C:\Windows\System32 | |
copy ngrok.exe C:\Windows\System32 | |
- name: Connect your NGROK account | |
run: .\ngrok.exe authtoken 2FA05aUNAHCDBOHmwXI9Ml6Icki_7jAJB2T2YD8Frj3yEfn8R | |
env: | |
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN2 }} | |
- name: Make YML file for NGROK. | |
run: start NGROK-US.bat | |
- name: Enable RDP Access. | |
run: | | |
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0 | |
Enable-NetFirewallRule -DisplayGroup "Remote Desktop" | |
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1 | |
- name: Create Tunnel | |
run: sc start ngrok | |
- name: Connect to your RDP 2core-7GB Ram. | |
run: cmd /c NGROK-CHECK.bat | |
- name: All Done! You can close Tab now! Maximum VM time:6h. | |
run: cmd /c loop.bat |