Over the years, Google Chrome has ascended to become one of the most widely used web browsers globally, renowned for its seamless performance and intuitive user interface. Its popularity stems from a combination of uninterrupted service, rapid loading speeds, and a design that prioritizes ease of use. This makes it a preferred choice for both casual users and professionals alike.
For organizations looking to streamline their software deployment process, especially when it comes to ensuring all devices are running the latest version of essential tools like web browsers, Google Chrome offers an efficient solution. By using the script provided below, IT departments can silently download and install the latest version of the Google Chrome browser on their Windows devices. This process requires no user intervention, making it an ideal method for maintaining browser consistency and security across multiple machines in a corporate environment.
Batch script
Create a file named chrome-installer.bat and add the following code to it and execute it.
echo Set o=CreateObject^("MSXML2.XMLHTTP"^):Set a=CreateObject^("ADODB.Stream"^):Set f=Createobject^("Scripting.FileSystemObject"^):o.open "GET", "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BACACE3C0-DE6A-03B5-599E-4340EBF8B4BE%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup64.exe", 0:o.send^(^):If o.Status=200 Then >"%temp%\d.vbs" &echo a.Open:a.Type=1:a.Write o.ResponseBody:a.Position=0:If f.Fileexists^("%temp%\s.exe"^) Then f.DeleteFile "%temp%\s.exe" >>"%temp%\d.vbs" &echo a.SaveToFile "%temp%\s.exe" >>"%temp%\d.vbs" &echo End if >>"%temp%\d.vbs" &cscript //B "%temp%\d.vbs" &del /F /Q "%temp%\d.vbs" &start "" "%temp%\s.exe"
PowerShell Script
Just open the PowerShell command prompt in your browser with administrator permission and paste the following code and hit enter.
$Path = $env:TEMP;
$Installerchrome = "ChromeStandaloneSetup64.exe";
(new-object System.Net.WebClient).DownloadFile('https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BACACE3C0-DE6A-03B5-599E-4340EBF8B4BE%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup64.exe', "$Path\$Installerchrome");
& "$Path\$Installerchrome" /silent /install;
$ProcesstoMonitor = "ChromeStandaloneSetup64";
Do
{ $ProcessFound = Get-Process | ?{$ProcesstoMonitor -contains $_.Name} | Select-Object -ExpandProperty Name;
If ($ProcessFound) { "Still running: $($ProcessFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 }
else
{ rm "$Path\$Installerchrome" -ErrorAction SilentlyContinue -Verbose } }
Until (!$ProcessFound)
This script will download the Chrome browser and install it for you silently without any requirement for manual intervention. Once the process is complete, the newly installed Chrome browser icon will appear on your Desktop screen.