-
Notifications
You must be signed in to change notification settings - Fork 722
Open
Description
name: RDP
on: [workflow_dispatch]
jobs:
build:
runs-on: windows-latest
steps:
- name: Download ngrok
run: |
Invoke-WebRequest https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
Expand-Archive ngrok.zip
./ngrok.exe authtoken 2tsCynDAFD31qzl81aVmdxpadeM_4oekjjoNqaY6fjfHCXK5t
- name: Enable RDP
run: |
net user kamel123 MyStrong123 /add
net localgroup administrators kamel123 /add
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
./ngrok.exe tcp 3389
Metadata
Metadata
Assignees
Labels
No labels