# ConfigMgr New PC TS Provisioning Package

To use OSConfig in a Provisioning Package, the following changes to the Task Sequence need to be made

* OSConfig.ppkg must be created as a Package (no Program)
* Windows Partition Drive Letter must be saved as a Task Sequence Variable

## Create an OSConfig Package for the PPKG File <a href="#create-an-osconfig-package-for-the-ppkg-file" id="create-an-osconfig-package-for-the-ppkg-file"></a>

Create a new Package with Source Files to the root of your OSConfig PPKG content. The package will contain only the PPKG file, nothing else. Do not create a Program. Distribute Content to your Distribution Points

## Task Sequence Partition Steps <a href="#task-sequence-partition-steps" id="task-sequence-partition-steps"></a>

Edit your Partition Disk steps to ensure that the Windows Partition Drive Letter is assigned a Variable. This is typically OSDisk. Repeat this process for both BIOS and UEFI Windows Partitions

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LKwix12wRxkEZMyaLLw%2F-LKwkxIG1Hj2Vm8qe6kg%2F2018-08-27_14-01-01.png?alt=media\&token=3d9b6984-b48d-4a9d-badc-4a56811a1edf)

## Package Run Command Line <a href="#package-run-command-line" id="package-run-command-line"></a>

Inset a Run Command Line step with your OSConfig PPKG Package to inject the PPKG to the Offline Windows Image (in WinPE). Use the following Command Line

```
dism /Image=%OSDisk%\ /Add-ProvisioningPackage /PackagePath:"OSConfig.ppkg"
```

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LKxAJJc2KOoA_Bgksoh%2F-LKxAnPFRbH0a6s8Ufur%2F2018-08-27_15-55-55.png?alt=media\&token=d1da140e-65d7-4c9e-86c3-af310d93a7eb)

## Deployment <a href="#deployment" id="deployment"></a>

OSConfig.ps1 will execute silently during the OOBE Phase, but the child scripts will not

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LKxAJJc2KOoA_Bgksoh%2F-LKxCWG8-QTq4b37nNaa%2F2018-08-27_16-06-35.png?alt=media\&token=d6982caa-6319-4628-b1ed-35aae6a126cc)

For fully silent operation during OOBE, you can edit OSConfig.ps1 file to make everything run hidden

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LKxAJJc2KOoA_Bgksoh%2F-LKxCnkMFQPG2XoWZG8J%2F2018-08-27_16-05-56.png?alt=media\&token=2899354f-9eff-473a-bac3-ce6ddee6f60a)

## Complete <a href="#complete" id="complete"></a>

When complete, everything should have applied properly. You can check the PPKG LOG file or the OSConfig Log files to determine if there were any issues.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LKxAJJc2KOoA_Bgksoh%2F-LKxDYtKIrbh8hyzjP3A%2F2018-08-27_16-11-18.png?alt=media\&token=9e924de5-4efd-40d1-ad47-878777b3c28d)

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLBTcwdDu808ZW2IqWV%2F-LLBTqAs_5iWS_Mk71fo%2F2018-08-30_15-16-30.png?alt=media\&token=e1fdb285-24c8-466e-9af0-1d8364ddcd49)

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLBTcwdDu808ZW2IqWV%2F-LLBUL1zLqIDAKHynyMh%2F2018-08-30_15-17-46.png?alt=media\&token=4c449534-b888-4a26-bf73-bb3eb95ff753)

The Support Group is from the Domain GPO

​
