Advertisement
hivefans

circlerdp.yml

Dec 4th, 2021
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: 2.1
  2.  
  3. orbs:
  4.   win: circleci/windows@2.2.0
  5.  
  6. jobs:
  7.   build:
  8.     executor:
  9.       name: win/default
  10.       size: "medium"
  11.  
  12.     steps:
  13.      - checkout      
  14.       - run: Set-LocalUser -Name "Administrator" -Password (ConvertTo-SecureString -AsPlainText "YOUR_PASSWORD_HERE" -Force)
  15.       - run: Get-LocalUser -Name "Administrator" | Enable-LocalUser
  16.       - run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
  17.       - run: tar xf ngrok.zip
  18.       - run: Copy ngrok.exe C:\Windows\System32
  19.       - run: cmd /c echo ./ngrok.exe authtoken "YOUR_NGROK_AUTHTOKEN_HERE" >a.ps1
  20.       - run: cmd /c echo cmd /k start ngrok.exe tcp 3389 >>a.ps1
  21.       - run: cmd /c echo ping -n 999999 10.10.10.10 >>a.ps1
  22.       - run: .\a.ps1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement