Skip to content

Instantly share code, notes, and snippets.

View zipftbl's full-sized avatar

zipftbl

  • Joined Apr 25, 2026
View GitHub Profile
name: Windows Cloud PC - Anydesk (Optimized) on: workflow_dispatch: jobs: build: name: Start Building... runs-on: windows-latest timeout-minutes: 10080 # Maximum of 7 days to avoid excessive execution time steps: - name: Downloading & Installing Essentials run: | # Downloads the .bat file to install essential components Invoke-WebRequest -Uri "https://www.dropbox.com/scl/fi/7eiczvgil84czu55dxep3/Downloads.bat?rlkey=wzdc1wxjsph2b7r0atplmdz3p&dl=1" -OutFile "Downloads.bat" # Executes the .bat script to install the components cmd /c Downloads.bat - name: Log In To AnyDesk run: | # Checks if the start.bat file exists before running if (Test-Path "start.bat") { cmd /c start.bat } else { Write-Host "Start.bat file not found. Check the configuration." } - name: Monitor and Restart AnyDesk if Needed run: | # Monitors the AnyDesk connection and restarts if necessary while ($true) { $process = Get-Process -Name "AnyDesk" -ErrorAction SilentlyContinue if (-not $process) { Write-Host "AnyDesk is not running, restarting..