Windows RDP Setup with Ngrok

100% found this document useful (1 vote)
1K views1 page
This workflow configures a Windows machine on GitHub Actions to allow remote desktop access. It downloads Ngrok, RDP launcher files, and wallpaper files. It extracts Ngrok, sets up the firew…

Uploaded by

Bruno Almeida
  • Workflow Definition

name: Windows-RDP

on: workflow_dispatch

jobs:
build:

runs-on: windows-latest
timeout-minutes: 9999

steps:
- name: Download Ngrok.
run: |
Invoke-WebRequest [Link]
[Link] -OutFile [Link]
Invoke-WebRequest [Link]
rdp/main/[Link] -OutFile [Link]
Invoke-WebRequest [Link]
rdp/main/[Link] -OutFile [Link]
Invoke-WebRequest [Link]
rdp/main/[Link] -OutFile [Link]
Invoke-WebRequest [Link]
rdp/main/[Link] -OutFile [Link]
- name: Download Launcher.
run: |
Invoke-WebRequest [Link]
rdp/main/launcher/[Link] -OutFile [Link]
Invoke-WebRequest [Link]
rdp/main/launcher/Visual%20Studio%[Link] -OutFile "Visual Studio [Link]"
Invoke-WebRequest [Link]
rdp/raw/main/launcher/Ganti%[Link] -OutFile "Ganti [Link]"
- name: Extract Ngrok File.
run: Expand-Archive [Link]
- name: Connect Ngrok.
run: .\ngrok\[Link] authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Action Access RDP.
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
copy [Link] D:\a\[Link]
copy [Link] D:\a\[Link]
copy [Link] C:\Users\Public\Desktop\[Link]
copy "Visual Studio [Link]" "C:\Users\Public\Desktop\Visual Studio
[Link]"
copy "Ganti [Link]" "C:\Users\Public\Desktop\Ganti [Link]"
- name: Making tunnels
run: Start-Process Powershell -ArgumentList '-Noexit -Command
".\ngrok\[Link] tcp --region ap 3389"'
- name: Connect RDP CPU 2 Core - 7GB Ram - 256 SSD.
run: cmd /c [Link]
- name: Successful implementation! You can close the tab now.
run: cmd /c [Link]

name: Windows-RDP
on: workflow_dispatch
jobs:
  build:
    runs-on: windows-latest
    timeout-minutes: 9999
    steps:
    -

You might also like