Skip to content

Instantly share code, notes, and snippets.

@ayushkamadji
Created October 23, 2020 16:41
Show Gist options
  • Save ayushkamadji/1e6dd6df3920cbe47c051edbc1dc414f to your computer and use it in GitHub Desktop.
Save ayushkamadji/1e6dd6df3920cbe47c051edbc1dc414f to your computer and use it in GitHub Desktop.
runstubby ps1 script
PowerShell -ExecutionPolicy bypass -file "C:\Program Files\Stubby\stubby_setdns_windows.ps1"
$stubbyexe = "C:\Program Files\Stubby\stubby.exe"
$proc = Start-Process -FilePath $stubbyexe -PassThru -WindowStyle Hidden
Read-Host -Prompt "Press Enter to exit"
Stop-Process -id $proc.ID
PowerShell -ExecutionPolicy bypass -file "C:\Program Files\Stubby\stubby_resetdns_windows.ps1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment