Just a quick post, but I recently came across the below error while generating a mandatory profile and went about investing some time with Microsoft.
Before I go further, do you know how the correct procedure to create a mandatory profile in server 2008 R2? Are you sure? Because this hidden / badly documented article tucked away on Technet was news to me!
Now that that’s out of the way, after running the sysprep command and restarting you may receive the following error in the setupact.txt file and wonder, like me if this is something to be worried about.
2011-08-19 14:05:22, Info [Shell Unattend] CopyProfileDirectory from C:UsersAdministrator succeeded.
2011-08-19 14:05:22, Error [Shell Unattend] TakeOwnerAndDeleteKey failed (0x80070002)
2011-08-19 14:05:22, Info [Shell Unattend] CopyProfile succeeded
Fear not, having spoken to Microsoft (ref:111082230465165) this error can occur if the profile is deleted before the process has caught up, resulting in this strange, but harmless error. Your user profile is still a model template to be used as you see fit.
Edit:
For a really good write up on how to create a mandatory profile in server 2008 R2 / Windows 7 head over to myvirtualvision.com by @KBaggerman.



