Created
October 23, 2020 16:41
-
-
Save ayushkamadji/1e6dd6df3920cbe47c051edbc1dc414f to your computer and use it in GitHub Desktop.
runstubby ps1 script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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