remove reference to decommisioned server from offline files and folders on multiple XP clients.
-
Wednesday, June 27, 2012 11:53 AM
I need to remove reference to decommisioned server from offline files and folders on multiple XP clients. I would like to do this without having to format the entire offline cache, if it is possible. I did find a technet post, which describes a similar issue.
But have been unable to get the syntax for this code right, therefore I would be most grateful for any help or ideas.
Cheers
Anand
All Replies
-
Wednesday, June 27, 2012 5:35 PM
I need to remove reference to decommisioned server from offline files and folders on multiple XP clients. I would like to do this without having to format the entire offline cache, if it is possible. I did find a technet post, which describes a similar issue.
But have been unable to get the syntax for this code right, therefore I would be most grateful for any help or ideas.
Cheers
Anand
What have you tried.
The script posted was pretty simple and pretty exact:
$cs=Get-WmiObject -List win32_offlineFilesCache -computer mypc
$cs.deleteItems($item2Delete,2147483648)$itemtodelete is the file you want to purge.
¯\_(ツ)_/¯
-
Wednesday, June 27, 2012 5:39 PM
Here is a good article to start with. It will help you to understand how to navigate the offline files:
http://blogs.technet.com/b/heyscriptingguy/archive/2009/06/02/how-can-i-work-with-the-offline-files-feature-in-windows.aspx¯\_(ツ)_/¯
- Proposed As Answer by Richard MuellerMVP, Moderator Monday, July 09, 2012 2:23 AM
- Marked As Answer by Richard MuellerMVP, Moderator Monday, July 09, 2012 2:58 PM
-
Monday, July 09, 2012 2:58 PMModerator
As there has been no activity in this thread for a few days, we assume the issue is resolved. We will mark it as "answered" to assist others in similar situations. If you disagree, please reply with further information. You can unmark the answer if you wish. If a reply helped answer your question, please mark it as the answer.
Richard Mueller - MVP Directory Services

