When you go to deploy an operating system through SCCM, you may encounter the following error: The Task Sequence failed with the Error Code 0x80070002. For more information, contact your system administrator or helpdesk operator.
Like most things, this ends up being a software deployment permissions error.
To resolve this, open up your System Center Configuration Console and navigate to Administration > Site Configuration > Sites > and click on your site. Click on Configure Site Components and select the Software Distribution component.
Navigate to Network Access Account and add your SCCM admin account.
Reboot your PC you were trying to image and you’ll be good to go!