> For the complete documentation index, see [llms.txt](https://osdeploy.gitbook.io/osdbuilder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osdeploy.gitbook.io/osdbuilder/docs/osbuild/new-osbuildtask/templates.md).

# Templates

So you have locked down your **Basic Task**, and you want to make sure that it gets applied every time you create an **OSBuild** with that specific **OSMedia**, simply move the **Task JSON** file from the **Tasks** directory into the **Templates** directory

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LaTuL0P421otIERkPpX%2F-LaTwi4Ljk89tQu1lpoa%2Fimage.png?alt=media\&token=b2faef9a-3c64-4689-92d9-f0ca79f648e9)

## New-OSBuildTask -SaveAs Template <a href="#new-osbuildtask-saveas-template" id="new-osbuildtask-saveas-template"></a>

To save a Task as a Template, use the **`-SaveAs Template`** parameter

```
New-OSBuildTask -TaskName "Enable NetFX" -EnableNetFX3 -SaveAs Template
```

The Task will be saved into the Templates directory. This specific Template will enable NetFX every time the **OSMFamily** "**Client Enterprise x64 17763 en-US**" is used

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LcP5dA5yCABkWJageU6%2F-LcP8huoAzCar8h3Rzeg%2Fimage.png?alt=media\&token=d9d3f4d3-e3b3-40b1-b5d4-b4ddad3178b4)

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LcP5dA5yCABkWJageU6%2F-LcP87SMjKBH3fS-natw%2Fimage.png?alt=media\&token=39c2c3e2-2073-407c-b127-5269aa5ba0a2)

## Global Templates <a href="#global-templates" id="global-templates"></a>

When using the **`-SaveAs Template`** parameter and adding the word **Global** to the Task Name, you will have a **Global Template**. This means that every OSBuild that is created, regardless of the Operating System, will have the settings applied

```
New-OSBuildTask -TaskName "Global Enable NetFX" -EnableNetFX3 -SaveAs Template
```

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LcP5dA5yCABkWJageU6%2F-LcP9iy8TxCiOci-eS5v%2Fimage.png?alt=media\&token=c6ae5259-5797-4f7e-9099-0bf9a0dd66ae)

## New-OSBuild Execution <a href="#new-osbuild-execution" id="new-osbuild-execution"></a>

Templates that are applied will be displayed when executing **`New-OSBuild`**

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LcP5dA5yCABkWJageU6%2F-LcPDas3l1tjR7eHTbr-%2Fimage.png?alt=media\&token=69846738-aae2-4487-ba0e-3978809dd26c)
