Manage Google Chrome Extensions

SOTI MobiControl
Windows

Google Chrome extensions enhance the functionality of the browser, offering customization options and productivity tools that improve the user experience. From organizing tasks to blocking ads, these extensions provide valuable features for users. The Manage Google Chrome Extensions script allows IT administrators to remotely configure, enable, or disable specific extensions across Chrome browsers on Windows devices. This helps ensure that only approved extensions are used, maintaining security, optimizing browser performance, and ensuring compliance with organizational policies.

Important:
  • It is recommended to test the script on a local/ test machine for its purpose and effects. 
  • SOTI MobiControl will not be responsible for any damage/loss to the data/setup based on the behavior of the script.

Install a google chrome extension(name value should be numeric)

1 $chromePolicyPath = "HKLM:\Software\Policies\Google\Chrome\ExtensionInstallForcelist"
2 # Create the policy path if it doesn't exist
3 if (-not (Test-Path $chromePolicyPath)) {
4 New-Item -Path $chromePolicyPath -Force
5 }
6 # Add the extension ID and update URL to the registry
7 Set-ItemProperty -Path $chromePolicyPath -Name "1" -Value "<app_id>"

Remove a google chrome extension(name value should be numeric)

1 Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" -Name 1

Block a google chrome extension(name value should be numeric)

1 # Path to the Chrome Policies Registry
2 $chromePolicyPath = "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallBlocklist"
3 # Create the policy path if it doesn't exist
4 if (-not (Test-Path $chromePolicyPath)) {
5 New-Item -Path $chromePolicyPath -Force
6 }
7 # Add the extension ID and update URL to the registry
8 Set-ItemProperty -Path $chromePolicyPath -Name "1" -Value "<app_id>"

Allow the installation of a google chrome extension(name value should be numeric)

1 # Path to the Chrome Policies Registry
2 $chromePolicyPath = "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallAllowlist"
3 # Create the policy path if it doesn't exist
4 if (-not (Test-Path $chromePolicyPath)) {
5 New-Item -Path $chromePolicyPath -Force
6 }
7 # Add the extension ID and update URL to the registry
8 Set-ItemProperty -Path $chromePolicyPath -Name "1" -Value "<app_id>"

Was this helpful?

Need more help?
Ask Community