# ContentWinPEScripts

* **Requires PowerShell files in C:\OSDBuilder\Content\Scripts**

## Add Scripts Content

I have a nice little PowerShell script that I want to apply to each WinPE to set the Default Time Zone from Seattle's Pacific Time to Houston's Central Time, so this is what I have

![](https://1642863114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmIIKLDn2u7Sp5DGyF2%2F-LpEPxIXdbiY1t74lGXM%2F-LpEVgWeIcP1t_mft43b%2Fimage.png?alt=media\&token=f7d7550e-bc95-4332-9b5b-101b26459aba)

I'll need to add the PS1 file to the Content Scripts directory at **C:\OSDBuilder\Content\Scripts**

![](https://1642863114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmIIKLDn2u7Sp5DGyF2%2F-LpEPxIXdbiY1t74lGXM%2F-LpEVR1pmhLQMXPDDk_U%2Fimage.png?alt=media\&token=db85414b-2936-439e-95eb-38f3a492b661)

## New-OSBuildTask

```
New-OSBuildTask -TaskName SeguraOSD -ContentWinPEScripts
```

![](https://1642863114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmIIKLDn2u7Sp5DGyF2%2F-LpEYWS0UPcyHM2RPFFQ%2F-LpEYvotXcObzsGWVib_%2Fimage.png?alt=media\&token=b75ffa4e-9659-4cec-a785-98688a1d5b62)

### Multiple Prompts

I will be prompted to add Scripts three times, one for each Preinstallation Environment (WinPE | WinRE | WinSE)

![](https://1642863114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmIIKLDn2u7Sp5DGyF2%2F-LpEYWS0UPcyHM2RPFFQ%2F-LpEYxaOdNI3wIvPdnt1%2Fimage.png?alt=media\&token=889d3a50-7620-4f92-8bcb-ef05609f1dc2)

## Task JSON

```
"WinPEScriptsPE":  [
    "Scripts\\WinPE Global Set-TimeZone CentralStandardTime.ps1"
],
"WinPEScriptsRE":  [
    "Scripts\\WinPE Global Set-TimeZone CentralStandardTime.ps1"
],
"WinPEScriptsSE":  null,
```
