Skip to content

Instantly share code, notes, and snippets.

@SonOfDiablo
SonOfDiablo / download_geckodriver.ps1
Last active January 31, 2023 02:37
A script to download and unzip geckodriver, and then add it to the user path.
$ProgressPreference='SilentlyContinue'
Write-Host "Finding OS Architecture: " -ForegroundColor DarkCyan -NoNewline
# Find Os Architecture
if((Get-ComputerInfo).OsArchitecture -eq "64-bit"){
$arch = "*win64*"
Write-Host "64-bit" -ForegroundColor Green
}else{
$arch = "*win32*"
Write-Host "32-bit" -ForegroundColor Green