Skip to content

Commit

Permalink
Merge pull request #1 from MyDapitt/patch-1
Browse files Browse the repository at this point in the history
Change the region
  • Loading branch information
MyOnee authored Jun 14, 2024
2 parents 9289b05 + ee3bd8f commit 17cd0cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/win2022.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Enabling access to RDP.
- name: Enabling access to 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 wallpaper.png C:\Users\Public\Desktop\wallpaper.png
copy wallpaper.bat C:\Users\Public\Desktop\wallpaper.bat
- name: Open Tunnel.
run: Start-Process Powershell -ArgumentList '-Noexit -Command ".\ngrok\ngrok.exe tcp --region in 3389"'
run: Start-Process Powershell -ArgumentList '-Noexit -Command ".\ngrok\ngrok.exe tcp --region ap 3389"'
- name: Connect to your RDP
run: cmd /c start.bat
- name: Successfully made! You can close the tab now.
Expand Down

0 comments on commit 17cd0cb

Please sign in to comment.