Skip to content

Instantly share code, notes, and snippets.

@aymenjaz
Created June 7, 2022 21:17
Show Gist options
  • Save aymenjaz/f278874da57d881321226135f741d781 to your computer and use it in GitHub Desktop.
Save aymenjaz/f278874da57d881321226135f741d781 to your computer and use it in GitHub Desktop.
Automatically Download and install Brave Navigator. we need this script every time we install a new Windows server and we need to access internet , everyone know the error message that we have using internet explorer. this script is to remediate for this problem.
# Create a temporary directory to store Brave64
mkdir -Path $env:temp\Brave -erroraction SilentlyContinue | Out-Null
$Download = join-path $env:temp\Brave Brave64.exe
# Download the Brave installer.
Invoke-WebRequest 'https://laptop-updates.brave.com/latest/winx64/Brave64.exe' -OutFile $Download
# Install Google Brave using Powershell.
Invoke-Expression "$Download /install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment