# Create a Custom Script to Install any Google Chrome Extension

Follow this process to create a Batch Script (.bat) to install any Google Chrome Extension.

1\. Copy the sample script from below (this example contains the ID for the Google Ad Blocker):

```bash
reg add HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist /v 1 /t REG_SZ /d cfhdojbkjhnklbpkdaibdccddilifddb /f
```

2\. Locate the ID for the Google Chrome Extension that you wish to install, enter chrome://extensions in the address bar of a Google Chrome browser.

![](https://3007061244-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRkQfx_2cLnNNBX1muO%2F-MX38iZ3h69kY31Qk_Ew%2F-MX39gnHqJa8XSrH64by%2Fimage.png?alt=media\&token=4173cdc4-7cac-4ab6-afc6-3ebfeefe7dee)

a. Enter the name of the Google Chrome Extension for which you are searching.

b. Enable **Developer Mode** by clicking the switch.

c. Copy the **ID** for the Extension.

3\. Edit the sample batch script, replace the **highlighted ID** (The Google Chrome Ad Blocker Extension id in this example) with the ID for the Google Chrome Extension that you wish to install from step 2c above:

![Replace the Highlighted ID with the ID of the Chrome Extension to be Added](https://3007061244-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRkQfx_2cLnNNBX1muO%2F-MX2zt2iz_El3HyGW6we%2F-MX37XmTJYg5WQ5OquKr%2Fimage.png?alt=media\&token=c474b6c4-2907-481f-84bd-a260905c5e53)

4\. Save the Batch Script file (.bat extension is required) and host it. See [Quick Guide to Self-Hosting Custom Scripts](https://docs.faronics.com/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/quick-guide-to-self-hosting-custom-scripts) for further information.

5\. Add the Custom Script in Deploy; see the [Google Chrome Ad Blocker Extension](https://docs.faronics.com/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/google-chrome-ad-blocker-extension) example.

{% hint style="success" %}
You have successfully created an Install Batch Script for a  Google Chrome Extension. This script will need to be hosted (see [Quick Guide to Self-Hosting Custom Scripts](https://docs.faronics.com/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/quick-guide-to-self-hosting-custom-scripts)); once hosted, Create a Custom Script in Faronics Deploy (see [Google Chrome Ad Blocker Extension](https://docs.faronics.com/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/google-chrome-ad-blocker-extension) example).
{% endhint %}
