> For the complete documentation index, see [llms.txt](https://docs.faronics.com/faronicsdeploy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.faronics.com/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/google-chrome-ad-blocker-extension/create-a-custom-script-to-install-any-google-chrome-extension.md).

# 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.

![](/files/-MX39gnHqJa8XSrH64by)

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](/files/-MX37XmTJYg5WQ5OquKr)

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

5\. Add the Custom Script in Deploy; see the [Google Chrome Ad Blocker Extension](/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/google-chrome-ad-blocker-extension.md) 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](/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/quick-guide-to-self-hosting-custom-scripts.md)); once hosted, Create a Custom Script in Faronics Deploy (see [Google Chrome Ad Blocker Extension](/faronicsdeploy/custom-scripts-powershell-vb-batch/custom-scripts-library/google-chrome-ad-blocker-extension.md) example).
{% endhint %}
