wiping disk fails because unable to delete user profile folder
I'm investigating an issue within migrating XP to W7 with the use of hardlinking and preloading the image to the cache. The problem is that the task sequence execution is unable to delete files in some cases when wiping the disk. This is done within the WinPE phase. The files that give some issues reside in the user profile folders. We use delprof tooling to wipe the files in advance as a workaround. I was wondering why delprof is capable of deleting the files and wiping during OSD won't. What should be the best solution? Anyone have seen this before, what solution did you use? I took each line from multiple log files to show the exact foldername on which the deployment fails. Local Temp folders or files: <![LOG[Unable to delete directory D:\Users\user1\AppData\Local\Temp\OICE_75CD274A-765B-49CB-A653-D6A961407ECD.0 (0x80070091). Continuing.]LOG]!><time="18:23:43.784+-120" date="04-16-2012" component="ApplyOperatingSystem" context="" type="1" thread="1076" file="ccmfile.cpp:995"><![LOG[Unable to delete directory D:\Users\user2\AppData\Local\Temp\OICE_94F94B38-24DE-4A1A-8085-9160DD91B63C.0 (0x80070091). Continuing.]LOG]!><time="17:42:34.732+-120" date="04-05-2012" component="ApplyOperatingSystem" context="" type="1" thread="848" file="ccmfile.cpp:995"><![LOG[Unable to delete directory D:\Users\user3\AppData\Local\Temp\OICE_14D7EB03-B5A5-4CE8-BDC3-F326BA0F416C.0 (0x80070091). Continuing.]LOG]!><time="20:40:50.497+-120" date="05-04-2012" component="ApplyOperatingSystem" context="" type="1" thread="880" file="ccmfile.cpp:995"><![LOG[Unable to delete directory D:\Users\user4\AppData\Local\Temp\OICE_58AF8C06-CF31-4FDF-AFA9-93EEE61F7620.0 (0x80070091). Continuing.]LOG]!><time="03:58:53.920+-120" date="05-05-2012" component="ApplyOperatingSystem" context="" type="1" thread="1376" file="ccmfile.cpp:995"> IE5 temp files: <![LOG[Unable to delete directory C:\Documents and Settings\user5\Local Settings\Temporary Internet Files\Content.IE5\WGQU3XKM (0x80070091). Continuing.]LOG]!><time="06:08:54.443+-120" date="04-17-2012" component="ApplyOperatingSystem" context="" type="1" thread="1268" file="ccmfile.cpp:995"><![LOG[Unable to delete directory C:\Documents and Settings\user6\Local Settings\Temporary Internet Files\Content.IE5\4HUFSPMJ (0x80070091). Continuing.]LOG]!><time="05:54:42.257+-120" date="05-08-2012" component="ApplyOperatingSystem" context="" type="1" thread="1392" file="ccmfile.cpp:995"><![LOG[Unable to delete directory C:\Documents and Settings\user7\Local Settings\Temporary Internet Files\Content.IE5\ILMFYXGH (0x80070091). Continuing.]LOG]!><time="06:33:40.242+-120" date="04-19-2012" component="ApplyOperatingSystem" context="" type="1" thread="1348" file="ccmfile.cpp:995"><![LOG[Unable to delete directory C:\Documents and Settings\user8\Local Settings\Temporary Internet Files\Content.IE5\072TGBGN (0x80070091). Continuing.]LOG]!><time="06:09:08.339+-120" date="04-03-2012" component="ApplyOperatingSystem" context="" type="1" thread="1292" file="ccmfile.cpp:995"><![LOG[Unable to delete directory C:\Documents and Settings\user9\Local Settings\Temporary Internet Files\Content.IE5\C3ZV2CPD (0x80070091). Continuing.]LOG]!><time="06:07:29.521+-120" date="04-03-2012" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> EScan temp files: <![LOG[Unable to delete directory C:\Documents and Settings\user10\Local Settings\Temp\EScan (0x80070091). Continuing.]LOG]!><time="08:13:18.148+-120" date="04-24-2012" component="ApplyOperatingSystem" context="" type="1" thread="1356" file="ccmfile.cpp:995"><![LOG[Unable to delete directory C:\Documents and Settings\user11\Local Settings\Temp\EScan (0x80070091). Continuing.]LOG]!><time="08:06:07.295+-120" date="04-24-2012" component="ApplyOperatingSystem" context="" type="1" thread="1212" file="ccmfile.cpp:995"><![LOG[Unable to delete directory C:\Documents and Settings\user12\Local Settings\Temp\EScan (0x80070091). Continuing.]LOG]!><time="05:07:52.643+-120" date="05-03-2012" component="ApplyOperatingSystem" context="" type="1" thread="1148" file="ccmfile.cpp:995"><![LOG[Unable to delete directory C:\Documents and Settings\user13\Local Settings\Temp\EScan (0x80070091). Continuing.]LOG]!><time="21:00:40.379+-120" date="04-07-2012" component="ApplyOperatingSystem" context="" type="1" thread="1224" file="ccmfile.cpp:995"> Flash illegal chars in foldername: <![LOG[Unable to delete directory C:\Documents and Settings\user14\Application Data\Macromedia\Flash Player\#SharedObjects\6H3XYEVT\www.oad.nl. (0x80070002). Continuing.]LOG]!><time="09:36:42.940+-120" date="04-24-2012" component="ApplyOperatingSystem" context="" type="1" thread="960" file="ccmfile.cpp:995">
May 10th, 2012 5:53am

Not a solution, just some additional information: Error code 91 (hex) = "The directory is not empty." Error code 2 = "The system cannot find the file specified." Here's a brief thread on the same topic: http://myitforum.com/cs2/blogs/smslist/archive/2009/12/15/mdt-osd-re-sccm-win7-image-install-error-bh6she54.aspx . Have you reviewed the permissions on these directories and files for any clues? Here's another post they should help: http://blogs.msdn.com/b/alex_semi/archive/2012/02/22/os-refresh-fails-with-ntldr-can-t-be-found-error.aspx . Jason | http://blog.configmgrftw.com | Twitter @JasonSandys
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 9:39am

When i manually create a file with a trailing dot like this: copy NUL "\\?\C:\temp\foobar." I'm able to delete the file with commandline del "\\?\c:\temp\foobar.", however trying to delete using explorer GUI or just del will fail outputting the error "Could not find this item". I guess something similar will happen during the "Apply Image" step. As a result the file will be skipped but the folder will not be empty as another function wants to delete the parent folder. Deleting the folder will fail because of that (assuming that the delete function only deletes empty folders). And that makes sense because I get the "The directory is not empty." error during the task sequence execution. Conclusion: Apply Image > Disk wipe will fail whenever files exists with a trailing dot. Affected applications: - Adobe Flash Player - MS Office Isolated Conversion Environment Feature request would be: Wipe files during "Apply Image" using mount points only, example: del "\\?\c:\temp\*" do you agree?
May 10th, 2012 10:42am

Sounds reasonable. I suggest contacing CSS directly or your TAM if you have one as that is the only wayto determine if this is a known issue and file a request for a fix.Jason | http://blog.configmgrftw.com | Twitter @JasonSandys
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 11:05am

thank you, case closed :-)
May 10th, 2012 11:14am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics