🖥️ Automate Windows Remote Desktop setup with ngrok using GitHub Actions!
https://youtu.be/zrfDKT_2uuQ?si=PRNn4ZvCkfEFM-lf
name: Window 10
on: [push, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
timeout-minutes: 9999
steps:
- name: Download
run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
- name: Extract
run: Expand-Archive ngrok.zip
- name: Auth
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Enable TS
run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "@cyb3rking" -Force)
- name: Create Tunnel
run: .\ngrok\ngrok.exe tcp 3389
username - runneradmin
password - @cyb3rking
- Secure Remote Desktop: Establish a secure tunnel for remote desktop access to a Windows environment.
- Ngrok Integration: Utilize ngrok to create secure tunnels to localhost.
- [+] Super Fast Internet 800MB > 2.5GB !
- [+] Free Linux Storage !
- [+] 8 GB RAM !
- [+] 2 Core GPU !
- [+] Free Life Time !
- Fork this repository: Start by forking this repository to make it your own.
- Setup ngrok Auth Token: Add your ngrok authentication token as
NGROK_AUTH_TOKEN
in your repository secrets. - Customization: Optionally, tweak any parameters or settings to match your specific Windows environment.
- ngrok: A powerful tool for creating tunnels to localhost.
- This workflow is designed for Windows environments.
- Make sure to check and adjust any firewall or security settings if needed.
Feel free to contribute, share, or customize for your Windows projects! Happy coding! 🚀
Feel free to contribute to the project by opening issues, providing feedback, or submitting pull requests. Your contributions are valuable!