# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
