Install Chrome via CMD: Step-by-Step Guide
In this article
Installing Google Chrome via Command Prompt (CMD) allows for silent, automated deployment—ideal for system administrators managing multiple machines or users who prefer command-line operations. This method bypasses the need to manually download and run the installer from a browser. Instead, you use CMD with administrative privileges to download and install Chrome directly from Google's servers using command-line tools like PowerShell or curl (if available). This guide walks you through the process safely and efficiently, ensuring a clean installation without errors.
What You'll Need
- Windows 10 or Windows 11 (64-bit or 32-bit)
- Administrator access to the computer
- Active internet connection
- Command Prompt opened as Administrator
- PowerShell (usually pre-installed on modern Windows systems)
Step-by-Step
- Press the Windows key, type "cmd", right-click on "Command Prompt", and select "Run as administrator". Confirm the User Account Control (UAC) prompt if it appears.
- In the elevated CMD window, type
whoamiand press Enter. Verify that the output includes your username with administrative privileges. This ensures you have the correct permissions. - Decide whether you want the 64-bit or 32-bit version of Chrome. Most modern systems use 64-bit. To check your system architecture, type
echo %PROCESSOR_ARCHITECTURE%and press Enter. If it returns "AMD64", use the 64-bit installer; if "x86", use the 32-bit. - Use PowerShell from within CMD to download Chrome. Type the following command and press Enter:
powershell -Command "Invoke-WebRequest -Uri 'https://dl.google.com/chrome/install/latest/chrome_installer.exe' -OutFile '%TEMP%\chrome_installer.exe'"
This downloads the offline installer to your temporary folder. - Wait for the download to complete. You won’t see a progress bar, but the command will return to the prompt when finished. Ensure no error messages appear.
- Run the installer silently using this command:
"%TEMP%\chrome_installer.exe" --silent --install
The--silentflag prevents any user interface from appearing, making it ideal for automated setups. - Wait 10–20 seconds. The installer runs in the background. Once complete, Chrome is installed to the default location:
C:\Program Files\Google\Chrome\Application\chrome.exe(64-bit) orC:\Program Files (x86)\Google\Chrome\Application\chrome.exe(32-bit). - Verify the installation by typing:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --version
If Chrome is installed correctly, this returns the version number. - To launch Chrome from CMD, simply type:
start chrome
Windows will open the browser using the default installation path. - (Optional) Clean up the installer file by running:
del "%TEMP%\chrome_installer.exe"
This removes the temporary installer to free up space.
Common Mistakes
- Not running CMD as administrator: Without admin rights, the installer cannot write to protected directories, resulting in silent or explicit failures.
- Using the wrong architecture link: While the default URL serves the correct version based on your system, manually specifying an incorrect installer (e.g., 32-bit on a 64-bit system) may work but isn’t optimal.
- Typing commands incorrectly: Missing quotes, typos in flags (e.g.,
--slient), or incorrect paths can halt execution without clear error messages. - Assuming the installer is interactive: The
--silentflag suppresses all UI. Users may think nothing happened if they don’t check the version or look for the process. - Running the command on a system without PowerShell: While rare, some minimal Windows installations may lack PowerShell. The
Invoke-WebRequestcommand will fail in such cases.
Tips
- Use
curlif available: Some Windows versions includecurl. You can download the installer with:curl https://dl.google.com/chrome/install/latest/chrome_installer.exe -o %TEMP%\chrome_installer.exe - Deploy across multiple machines using a batch script: Save the commands in a
.batfile and run it on each system with admin rights. - Check Google’s official download URLs: The link
https://dl.google.com/chrome/install/latest/chrome_installer.exealways serves the latest stable version and is safe to use in automation. - Monitor installation via Task Manager: While the install runs silently, you can verify activity by checking for
chrome_installer.exeunder Processes. - Use
start /waitin scripts: When scripting, usestart "" /wait "%TEMP%\chrome_installer.exe" --silent --installto ensure the next command runs only after installation finishes.
Troubleshooting
If Chrome fails to install via CMD, follow these steps:
- No download occurs: Confirm internet access in CMD by pinging Google:
ping google.com. If unreachable, check network settings. Also ensure PowerShell is not restricted. Runpowershell -Command "Get-ExecutionPolicy"—if it returnsRestricted, temporarily allow scripts withSet-ExecutionPolicy RemoteSigned -Scope CurrentUser(requires admin). - 'Access is denied' error: This almost always means CMD isn’t running as administrator. Close CMD and reopen it with elevated privileges.
- Installer fails silently: Check the Temp folder:
explorer %TEMP%. Look forchrome_installer.exe. If missing, the download failed. If present, run it manually to see error messages. - Chrome not found after install: Use File Explorer to navigate to
C:\Program Files\Google\orC:\Program Files (x86)\Google\. If Chrome isn’t there, the installer may have been blocked by antivirus. Temporarily disable it and retry. - 'Command not recognized' for curl or PowerShell: Ensure Windows Management Framework is installed. On older systems, update Windows to include PowerShell 3.0 or higher.
Frequently Asked Questions
Can I install Chrome via CMD without PowerShell?
Yes, if you havecurl or wget installed via another tool like Git Bash or WSL. Otherwise, PowerShell is required for direct download within native CMD.
Is the silent install safe?
Yes. The--silent --install flags are officially supported by Google and do not modify system settings beyond installing Chrome.