You might se this error when deploying Windows from a SCCM 1511 task Sequence:
Task Sequence: xxx has failed with the error code (0x80070002)
If we take a closer look at the smsts.log file, you will in this specific case find the message No credential information in environment.
The reason will probably be that no Network Access Account has been defined, go to Administration, Overview, Site Configuration, Sites, in the top select Configure Site Components and Software Distribution.
Select the tab Network Access Account, an enter a account to use when access network locations.
See more information about this account here https://technet.microsoft.com/en-us/library/hh427337.aspx (search for Network Access Account)
Also see this post http://larslohmann.blogspot.dk/2016/01/task-sequence-error-code-0x80070002.html for another possible solution for the same error.