Wiping Volume C: fails to delete directories
Hello, We are migrating our Windows XP PCs to Windows 7 using SCCM Task Sequences integrated with MDT 2010 Update 1, USMT 4.0 and hardlinking. It has been mostly working, but have gotten the following failures on 3 PCs this week. When the "Apply Operating System Image" step runs, it fails with error 0x80070091. Checking the SMSTS.log, it appears that there may be some special characters in directory names: <![LOG[Starting to apply image 1 from WIN_7_X64_1009.wim to C:\]LOG]!><time="12:16:50.531+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="installimage.cpp:650"> <![LOG[Wiping C:\]LOG]!><time="12:16:50.531+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="installcommon.cpp:786"> <![LOG[Set "C:\_SMSTaskSequence" to not be wiped]LOG]!><time="12:16:50.531+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="installcommon.cpp:795"> <![LOG[Set "C:\_SMSTaskSequence\UserState" to not be wiped]LOG]!><time="12:16:50.531+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="installcommon.cpp:826"> <![LOG[Set "%_SMSTSClientCache%" to not be wiped]LOG]!><time="12:16:50.531+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="installcommon.cpp:826"> <![LOG[Set "%_SMSTSNewClientCachePathToCleanup%" to not be wiped]LOG]!><time="12:16:50.531+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="installcommon.cpp:826"> <![LOG[Calculating expected free space.]LOG]!><time="12:16:50.547+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1356" file="installcommon.cpp:229"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f\1611\23575\9h\dramsey.download.akamai.com\23575\flash\ sfgRmluamFuX1R5cGU9YWN0aXZleA== (0x80070002). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f\1611\23575\9h\dramsey.download.akamai.com\23575\flash (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f\1611\23575\9h\dramsey.download.akamai.com\23575 (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f\1611\23575\9h\dramsey.download.akamai.com (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f\1611\23575\9h (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f\1611\23575 (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f\1611 (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net\f (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\a1611.g.akamai.net (0x80070091). Continuing.]LOG]!><time="12:17:12.793+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\www.plugoo.com\ sfgRmluamFuX1R5cGU9YWN0aXZleA== (0x80070002). Continuing.]LOG]!><time="12:17:16.693+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\www.plugoo.com (0x80070091). Continuing.]LOG]!><time="12:17:16.693+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\zopim.com\ sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0 (0x80070002). Continuing.]LOG]!><time="12:17:17.145+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD\zopim.com (0x80070091). Continuing.]LOG]!><time="12:17:17.145+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects\ZVXV66QD (0x80070091). Continuing.]LOG]!><time="12:17:17.145+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player\#SharedObjects (0x80070091). Continuing.]LOG]!><time="12:17:17.145+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia\Flash Player (0x80070091). Continuing.]LOG]!><time="12:17:18.861+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data\Macromedia (0x80070091). Continuing.]LOG]!><time="12:17:18.861+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger\Application Data (0x80070091). Continuing.]LOG]!><time="12:17:26.162+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings\jmessenger (0x80070091). Continuing.]LOG]!><time="12:17:51.621+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Unable to delete directory C:\Documents and Settings (0x80070091). Continuing.]LOG]!><time="12:17:55.864+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:995"> <![LOG[Reporting deletion progress.]LOG]!><time="12:18:30.356+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1356" file="installcommon.cpp:247"> <![LOG[Skipping C:\System Volume Information for wipe]LOG]!><time="12:19:24.067+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:951"> <![LOG[Skipping C:\_SMSTaskSequence for wipe]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="ccmfile.cpp:951"> <![LOG[Filesystem::Directory::RecursiveDelete(volume, filesToKeep, 0), HRESULT=80070091 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installcommon.cpp,881)]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1168" file="installcommon.cpp:881"> <![LOG[WipeVolume( this->targetVolume, ImageInstaller::progressText, &filesToKeep ), HRESULT=80070091 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,676)]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1168" file="installimage.cpp:676"> <![LOG[ApplyImage(), HRESULT=80070091 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,1416)]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1168" file="installimage.cpp:1416"> <![LOG[Apply(), HRESULT=80070091 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,1456)]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1168" file="installimage.cpp:1456"> <![LOG[Installation of image 1 in package 0A100285 failed to complete.. The directory is not empty. (Error: 80070091; Source: Windows)]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="3" thread="1168" file="installimage.cpp:1476"> <![LOG[installer.install(), HRESULT=80070091 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,1527)]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1168" file="installimage.cpp:1527"> <![LOG[Closing image file C:\_SMSTaskSequence\Packages\0A100285\WIN_7_X64_1009.wim]LOG]!><time="12:21:05.124+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="wimfile.cpp:312"> <![LOG[Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\0A100285]LOG]!><time="12:21:05.139+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="resolvesource.cpp:3431"> <![LOG[reference count 1 for the source C:\_SMSTaskSequence\Packages\0A100285 before releasing]LOG]!><time="12:21:05.139+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="resolvesource.cpp:3438"> <![LOG[Released the resolved source C:\_SMSTaskSequence\Packages\0A100285]LOG]!><time="12:21:05.139+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="1" thread="1168" file="resolvesource.cpp:3471"> <![LOG[InstallImage( g_InstallPackageID, g_ImageIndex, targetVolume, ImageType_OS, g_ConfigPackageID, g_ConfigFileName, bOEMMedia ), HRESULT=80070091 (e:\nts_sms_fre\sms\client\osdeployment\applyos\applyos.cpp,373)]LOG]!><time="12:21:05.139+300" date="11-30-2010" component="ApplyOperatingSystem" context="" type="0" thread="1168" file="applyos.cpp:373"> <![LOG[Process completed with exit code 2147942545]LOG]!><time="12:21:05.155+300" date="11-30-2010" component="TSManager" context="" type="1" thread="1856" file="commandline.cpp:1102"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="12:21:05.155+300" date="11-30-2010" component="TSManager" context="" type="1" thread="1856" file="instruction.cxx:3010"> <![LOG[Failed to run the action: Apply Operating System x64. The directory is not empty. (Error: 80070091; Source: Windows)]LOG]!><time="12:21:05.155+300" date="11-30-2010" component="TSManager" context="" type="3" thread="1856" file="instruction.cxx:3101"> The directory named " sfgRmluamFuX1R5cGU9YWN0aXZleA== " seems to begin and/or end with special characters. I can boot with WinPE and do rd /s /q "C:\Documents and Settings" - the directory deletes successfully. Would it be inadvisable to put a Task Sequence Run Command Line step prior to the "Apply Operating System Image" step to do: cmd.exe /c if exist "C:\Documents and Settings" rd /q /s "C:\Documents and Settings" ? Thanks, Terence Durning EDIT: I'm going to try focusing only on the "C:\Documents and Settings\<userid>\Application Data\Macromedia\Flash Player" folder, I put a script in the start of the Task Sequence that does: dir "C:\Documents and Settings\Flash Player" /s /b /ad | find /i "Application Data\Macromedia\Flash Player" > C:\flashplayerfolders.txt.Windows7migration for /f "delims=~" %%a in (C:\flashplayerfolders.txt.Windows7migration) do rd /q /s "%%a" if exist C:\flashplayerfolders.txt.Windows7migration del C:\flashplayerfolders.txt.Windows7migration Now the only problem is finding another PC that it should fail on...
November 30th, 2010 10:27pm

Thanks for this Terrence. I had the exact same issue last night. A file path had a "#" symbol in it under a macromedia folder in a users profile.
Free Windows Admin Tool Kit Click here and download it now
December 3rd, 2010 9:59am

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

Other recent topics Other recent topics