PowerShell Tutorials

How To Install Google Chrome With PowerShell

Learn how to install Google Chrome effortlessly on your Windows machine using the power of PowerShell. This step-by-step guide will walk you through the process, providing clear instructions and commands to execute. With PowerShell, you can automate the installation procedure, saving you time and effort.

Introduction

Installing Google Chrome with PowerShell is a convenient and efficient method for adding this popular web browser to your Windows system. PowerShell is a powerful command-line tool provided by Microsoft, enabling users to automate various tasks, including software installations. By following the step-by-step instructions outlined below, you’ll be able to install Google Chrome quickly and easily using PowerShell.

$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe";
(new-object    System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/latest/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install;
$Process2Monitor =  "ChromeInstaller"; Do { 
    $ProcessesFound = Get-Process | ?{
        $Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound)
{ "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 }
else
{ rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)

The PowerShell Script will do the following.

  1. Call to URL Google Chrome package.
  2. Download the package and place it in a temp folder.
  3. Silently install Google Chrome onto a Windows computer.

If you have any questions, feel free to reach out.

Conclusion

By using PowerShell, you can streamline the process of installing Google Chrome on your Windows system. This method allows for automation and ease of use, saving you time and effort. Whether you’re setting up a new computer or simply need to install or update Google Chrome, PowerShell provides a reliable and efficient solution. Enjoy browsing the web with Google Chrome, taking advantage of its many features and enhancements.

I hope this article was helpful! You can find more here: PowerShell Articles

2 Comments

Leave a Reply to Ben J Cancel reply

Stay Informed

Receive instant notifications when new content is released.