cannot delete certain items from the Offline Files cache using the powershell DeleteItems method
I want to be able to do that using the available Offline Files API's, either through WMI or via a custom Visual Studio solution that uses the IOfflineFilesCache interface. For this kind of questions, I recommend you ask in MSDN forum. It's more professional and you may get more help there. Thanks for your understanding and cooperation! Regards, Miya TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tnmff@microsoft.comThis posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
November 17th, 2011 5:36am

Hello, I have a problem with some items that are present in the Offline Files. For example viewing the Offline Files Folder\Computers\servername.domain.name I see a couple of printer-shares and other resources present on that particular server. The reason they are there is because the Windows 7 Offline Files cache is also used to store a temporary version of a resource if the network latency is below a certain thresshold. That's why some of the older or heavier used printer-servers show up in my offline files cache. When I try to remove those items (Delete Offline Copy) either as a normal user or as an administrator, I cannot delete them. I tried working with the win32_OfflineFilesCache class using powershell and with the DeleteItems method (or Pin, unPin, ..) I could control the contenst of my offline files correctly, but NOT for these printer-resources. I could of course delete everything using the FormatDatabase reg-key and reboot, but I do not want that. I simply want to be able to remove certain single entries without having to break open the CSC folder and physically removing the entries. I want to be able to do that using the available Offline Files API's, either through WMI or via a custom Visual Studio solution that uses the IOfflineFilesCache interface. The latter isn't that easy unfortunately because the VB or C# language doesn't have access to the Interop Type libraries of that interface. There is an MSDN article (http://msdn.microsoft.com/en-us/library/aa480674.aspx) that explains "IDL hacking" for the sync interface but not specifically for the CSC*.dll. I'm not an expert on C# to begin with so that's beyond my knowledge and can only hope MS will add the supported TLB into the dotNet Framework soon so we can develop in C# easily. I hope someone can help me achieve what I want: delete any required item from the CSC without formatting the database... Best regards, EricBest regards and many thanks in advance, Eric Vegter
Free Windows Admin Tool Kit Click here and download it now
November 17th, 2011 8:35am

I want to be able to do that using the available Offline Files API's, either through WMI or via a custom Visual Studio solution that uses the IOfflineFilesCache interface. For this kind of questions, I recommend you ask in MSDN forum. It's more professional and you may get more help there. Thanks for your understanding and cooperation! Regards, Miya TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tnmff@microsoft.comThis posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
November 17th, 2011 8:53pm

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

Other recent topics Other recent topics