> 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/module/functions/new-pebuildtask.md). Agents can also search and read this documentation through its [MCP server](https://osdeploy.gitbook.io/osdbuilder/~gitbook/mcp).

# New-PEBuildTask

```
<#
.SYNOPSIS
Creates a JSON Task for use with New-PEBuild

.DESCRIPTION
Creates a JSON Task for use with New-PEBuild

.LINK
https://osdbuilder.osdeploy.com/module/functions/pebuild/new-pebuildtask

.PARAMETER SourceWim
Wim to use for the PEBuild

.PARAMETER TaskName
Name of the Task to create

.PARAMETER MDTDeploymentShare
MDT DeployRoot Full Path

.PARAMETER AutoExtraFiles
Add Auto ExtraFiles to WinPE

.PARAMETER ScratchSpace
Set the Scratch Space for WinPE
#>
```
