# Quick Guide to Self-Hosting Custom Scripts

## Hosting a Custom Script Using GitHub

Best practice is to self-host your Custom Scripts. To do this, you can use a free repository server such as GitHub, or you could host it on one of your company servers. The following is a guide to hosting a script using GitHub.

1.Create a free account on GitHub <https://github.com/join> (or sign in if you already have a GitHub account).

![](/files/-MWzPdm-GGYlS7gMZg79)

2\. Create a repository (or use an existing one). Click the green NEW button on the top left of the screen.

![](/files/-MWzQI9tq1Q5mUkJ2Tnc)

3\. Create a new script file by clicking c**reating a new file**.

![Creating a New File](/files/-MWzZ4GZyfnDbZTa8p0z)

4\. Name your script (ensure you have the correct file extension **.ps1** for PowerShell, **.vb** for VBScript, or **.bat** for Batch scripts),  enter your script's contents, then **commit new file**.

![Create the Script and Commit the New File](/files/-MWzZ_USe-pSw7anLEHn)

5\. Access the raw version of your script by clicking the **RAW** button.

![Select Raw to View the Raw Version of the Script](/files/-MWzVuGuBsthP1Yxo7rU)

6\. Copy the URL for the raw script that appears and save it in a text file for later; you will need this when configuring your custom script in Faronics Deploy.

![Copy the Raw URL](/files/-MWzX7BSy5_Sz-knLG7X)

{% hint style="success" %}
Your Custom Script is now hosted on GitHub; use the raw URL that you copied in step 6 to configure a Custom Script in Faronics Deploy.
{% 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/quick-guide-to-self-hosting-custom-scripts.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.
