Select the product you need help with
您不能更新脱机文件共享不在 Windows Server 2008 R2 中或在 Windows 7 中的管理权限的情况下脱机文件客户端高速缓存中的目标位置文章编号: 977229 - 查看本文应用于的产品 本页症状请考虑以下情形: 情境 1
情境 2
解决方案若要解决此问题,请在受影响的计算机上安装以下修复程序。安装此修复程序后,您可以更新不具有管理凭据的 CSC 缓存中的共享的文件夹记录。 注意: 尽管此修补程序包含在 Windows Server 2008 R2 和 Windows 7 SP1,您将需要添加注册表以启用该功能。您进一步将需要安装其他修补程序,使该 RenameItemEx 方法可用在 SP1 中的下面: ? 2610379
(http://support.microsoft.com/kb/2610379/
)
如果前一个用户将重定向的文件夹设置为脱机模式在 Windows 7 中,或在 Windows Server 2008 R2 中的文件夹重定向策略不起作用 热修复补丁程序信息可以从 Microsoft 获得支持的热修复补丁程序。但是,此修补程序用于解决本文中描述的问题。此修补程序仅适用于遇到本文所述问题的系统。此修补程序可能会接受进一步的测试。因此,如果这个问题没有对您造成严重的影响,我们建议您等待包含此修复程序的下一个软件更新。如果此修复程序可供下载,则此知识库文章顶部的"修补程序下载"部分。如果未显示此节,请与 Microsoft 客户服务和支持,以获取此修复程序。 注意如果出现其他问题或需要任何故障诊断,您可能需要创建单独的服务请求。将正常收取费用将应用于其他支持问题和事项,不需要此特定修补程序进行。有关的 Microsoft 客户服务和支持电话号码,或者创建一个单独的服务请求的完整列表,请访问下面的 Microsoft 网站: http://support.microsoft.com/contactus/?ws=support 注意"可用的热修补程序下载"表格显示此热修复补丁程序适用的语言。如果您看不到您的语言,这是因为热修复补丁程序不适用于该语言。
(http://support.microsoft.com/contactus/?ws=support)
先决条件若要应用此修补程序,您必须运行 Windows 7 或 Windows Server 2008 R2。注册表信息备注
322756 若要在此程序包中使用此修复程序,您必须创建注册表项。请执行以下步骤:
(http://support.microsoft.com/kb/322756/
)
如何在 Windows XP 中备份和还原注册表
重新启动要求在应用此修补程序后,您必须重新启动计算机。修补程序替换信息此修补程序不替代以前发布的修补程序。文件信息此修复程序的全球版本将安装具有下表中列出的属性文件。这些文件的日期和时间格式使用协调通用时间 (UTC)来表示。在您的本地时间与当前夏令时 (DST) 偏差一起显示的日期和本地计算机上这些文件的时间。此外,日期和时间可能会改变您执行某些操作的文件。Windows 7 和 Windows Server 2008 R2 文件信息备注重要Windows 7 的修复程序和 Windows Server 2008 R2 的修复程序包含在相同的程序包中。但是,在这两个操作系统中列出修补程序的修补程序请求页上。要请求应用于一个或两个操作系统的修补程序软件包,请选择在"Windows 7/Windows Server 2008 R2"下,在页上列出的修复程序。始终参考文章,以确定每个修补程序应用于实际的操作系统中"适用于"一节。
适用于所有受支持的基于 x86 的 Windows 7 版本收起该表格
适用于所有受支持的基于 x64 的 Windows 7 和 Windows Server 2008 R2 版本收起该表格
适用于所有受支持的基于 IA-64 的 Windows Server 2008 R2 版本收起该表格
状态更多信息有关如何将计算机配置为在安装此修复程序后,请按照下列步骤来实现上述方案 1 所需的行为:
有关如何将计算机配置为在安装此修复程序后,请按照下列步骤以实现所需的行为,上述方案 2:
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
' ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
' THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
' PARTICULAR PURPOSE.
'
' Copyright (c) Microsoft Corporation. All rights reserved.
'
'
' Usage: CscRename.vbs /OldItemPath:<path> /NewItemPath:<path> [/Machine:value] [/User:value] [/Password:value]
'
'
' Demonstrates how to rename an item in the Ofline Files cache.
'
' OldItemPath - UNC path of the current path to be renamed.
'
' NewItemPath - UNC path of the new path to replace the old path.
'
' If NewItemPath already exists, the operation is not performed.
' This operation simply schedules a rename to be performed on the next restart
' of the system.
'
const cComputerName = "LocalHost"
const cWMINamespace = "root\cimv2"
const cWMIClass = "Win32_OfflineFilesCache"
Const wbemFlagReturnImmediately = &h10
nRenameItemExFailureCount = 0
nRenameItemFailureCount = 0
'
' Process commandline arguments
'
strOldItemPath = WScript.Arguments.Named("OldItemPath")'
if Len(strOldItemPath) = 0 Then
Wscript.Echo "OldItemPath parameter required"
Err.Raise 449 ' "argument not optional" error
End if
strNewItemPath = WScript.Arguments.Named("NewItemPath")
if Len(strNewItemPath) = 0 Then
Wscript.Echo "NewItemPath parameter required"
Err.Raise 449 ' "argument not optional" error
End if
strComputerName = WScript.Arguments.Named("Machine")
If Len(strComputerName) = 0 Then strComputerName = cComputerName
strUserID = WScript.Arguments.Named("User")
If Len(strUserID) = 0 Then strUserID = ""
strPassword = WScript.Arguments.Named("Password")
If Len(strPassword) = 0 Then strPassword = ""
set objWMILocator = WScript.CreateObject("WbemScripting.SWbemLocator")
Set objWMIServices = objWMILocator.ConnectServer(strComputerName, _
cWMINameSpace, _
strUserID, _
strPassword)
'
' Note that Win32_OfflineFilesCache is a singleton.
'
strTempOldItemPath = Replace(strOldItemPath,"\","\\")
Set objWMIService = GetObject("winmgmts:\\" & cComputerName & "\root\CIMV2")
Set objCache = objWMIServices.Get("Win32_OfflineFilesCache=@")
'
'Find the path of the item to be renamed in the cache
'
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_OfflineFilesItem WHERE ItemPath ='" &strTempOldItemPath&"'", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
'
'If folder is pinned we need to rename all the directory items underneath this
'
If (objItem.PinInfo.Pinned = True) Then
'
'Find all the directories underneath the folder in the cache
'
Set childItems = objWMIService.ExecQuery("SELECT * FROM Win32_OfflineFilesItem WHERE ParentItemPath = '" &strTempOldItemPath&"'", "WQL", _
wbemFlagForwardOnly + wbemFlagReturnImmediately )
For Each childItem In childItems
strOldPath = childItem.ItemPath
'
'Item to be renamed in the cache
'
strTempNewItemPath = strNewItemPath & "\" & childItem.ItemName
On Error Resume Next
'
' Note that while we pass "False" for the bReplace parameter, that
' parameter is ignored. Existing destinations are never replaced, regardless
' of what we pass for the 3rd parameter.
'
objCache.RenameItemEx strOldPath, strTempNewItemPath, False
hr = Hex(Err.Number)
If Err.Number <> 0 Then
WScript.Echo "RenameItem Failed with error:" &hr
WScript.Echo "While renaming:" & strOldPath & " to:" &strTempNewItemPath
Err.Clear
nRenameItemExFailureCount = nRenameItemExFailureCount + 1
On Error Resume Next
'
'We got the error in renaming this may happen due to item in use, try to renaname after reboot
'
objCache.RenameItem strOldPath, strNewItemPath, False
hr = Hex(Err.Number)
If Err.Number <> 0 Then
WScript.Echo "RenameItem Failed with error:" &hr
WScript.Echo " While renaming:" & strOldPath & " to:" &strTempNewItemPath
Err.Clear
nRenameItemFailureCount = nRenameItemFailureCount + 1
Else
WScript.Echo "item rename scheduled. A restart of the system is necessary to apply the change."
End If
Else
WScript.Echo "Renamed:" &strOldPath & " to:" &strTempNewItemPath & " SUCCESSFULLY"
End If
Next
Else
'
'Find all the directory items underneath the folder in the cache
'
Set childItems = objWMIService.ExecQuery("SELECT * FROM Win32_OfflineFilesItem WHERE ParentItemPath = '" &strTempOldItemPath&"'", "WQL", _
wbemFlagForwardOnly + wbemFlagReturnImmediately )
For Each childItem In childItems
'
'If this item is pinned and a directory, rename it
'
If (childItem.PinInfo.Pinned = True) Then
strOldPath = childItem.ItemPath
strTempNewItemPath = strNewItemPath & "\" &childItem.ItemName
On Error Resume Next
' Note that while we pass "False" for the bReplace parameter, that
' parameter is ignored. Existing destinations are never replaced, regardless
' of what we pass for the 3rd parameter.
'
objCache.RenameItemEx strOldPath, strTempNewItemPath, False
hr = Hex(Err.Number)
If Err.Number <> 0 Then
On Error Resume Next
WScript.Echo "RenameItemEx Failed with error:" &hr
WScript.Echo "While renaming:" & strOldPath & " to:" &strTempNewItemPath
Err.Clear
nRenameItemExFailureCount = nRenameItemExFailureCount + 1
On Error Resume Next
'
'We got the error in renaming this may happen due to item in use, try to renaname after reboot
'
objCache.RenameItem strOldPath, strTempNewItemPath, False
hr = Hex(Err.Number)
If Err.Number <> 0 Then
On Error Resume Next
WScript.Echo "RenameItem Failed with error:" &hr
WScript.Echo "While renaming:" & strOldPath & " to:" &strTempNewItemPath
Err.Clear
nRenameItemFailureCount = nRenameItemExFailureCount + 1
Else
WScript.Echo "item rename scheduled. A restart of the system is necessary to apply the change."
End If
Else
WScript.Echo "Renamed:" &strOldPath & " to:" &strTempNewItemPath & " SUCCESSFULLY"
End If
End If
Next
End If
If (nRenameItemExFailureCount > 0 & (nRenameItemExFailureCount - nRenameItemFailureCount) > 0) Then
WScript.Echo "item rename scheduled. A restart of the system is necessary to apply the change."
ElseIf (nRenameItemExFailureCount = 0) Then
WScript.Echo "Items Renamed SUCCESSFULLY"
Else
WScript.Echo "ItemsRenamed FAILED"
End If
Next'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
' ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
' THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
' PARTICULAR PURPOSE.
'
' Copyright (c) Microsoft Corporation. All rights reserved.
'
'
' Usage: CscRenameItemEx.vbs /OldItemPath:<path> /NewItemPath:<path> [/Machine:value] [/User:value] [/Password:value]
'
'
' Demonstrates how to rename an item in the Ofline Files cache.
'
' OldItemPath - UNC path of the current path to be renamed.
'
' NewItemPath - UNC path of the new path to replace the old path.
'
' If NewItemPath already exists, the operation is not performed.
' If OldItemPath is currently in use,this operation simply schedules
' a rename to be performed on the next restart.
'
'
On Error Resume Next
const cComputerName = "LocalHost"
const cWMINamespace = "root\cimv2"
const cWMIClass = "Win32_OfflineFilesCache"
'
' Process commandline arguments
'
strOldItemPath = WScript.Arguments.Named("OldItemPath")'
if Len(strOldItemPath) = 0 Then
Wscript.Echo "OldItemPath parameter required"
Err.Raise 449 ' "argument not optional" error
End if
strNewItemPath = WScript.Arguments.Named("NewItemPath")'
if Len(strNewItemPath) = 0 Then
Wscript.Echo "NewItemPath parameter required"
Err.Raise 449 ' "argument not optional" error
End if
strComputerName = WScript.Arguments.Named("Machine")
If Len(strComputerName) = 0 Then strComputerName = cComputerName
strUserID = WScript.Arguments.Named("User")
If Len(strUserID) = 0 Then strUserID = ""
strPassword = WScript.Arguments.Named("Password")
If Len(strPassword) = 0 Then strPassword = ""
set objWMILocator = WScript.CreateObject("WbemScripting.SWbemLocator")
Set objWMIServices = objWMILocator.ConnectServer(strComputerName, _
cWMINameSpace, _
strUserID, _
strPassword)
'
' Note that Win32_OfflineFilesCache is a singleton.
'
' Also note that while we pass "False" for the bReplace parameter, that
' parameter is ignored. Existing destinations are never replaced, regardless
' of what we pass for the 3rd parameter.
'
Set objCache = objWMIServices.Get("Win32_OfflineFilesCache=@")
objCache.RenameItemEx strOldItemPath, strNewItemPath, False
If Err.Number <> 0 Then
WScript.Echo " RenameItemEx Failed:" &Err.Description
Err.Clear
On Error Resume Next
objCache.RenameItem strOldItemPath, strNewItemPath, False
If Err.Number <> 0 Then
WScript.Echo "RenameItem Failed:" &Err.Description
Err.Clear
Else
WScript.Echo "item rename scheduled. A restart of the system is necessary to apply the change."
End If
Else
WScript.Echo "item renamed."
End If
976698 有关软件更新术语的详细信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
(http://support.microsoft.com/kb/976698/
)
您不能更新脱机文件共享管理许可的情况下脱机文件客户端高速缓存中的目标位置824684
(http://support.microsoft.com/kb/824684/
)
用于描述 Microsoft 软件更新的标准术语的说明其他文件信息对于 Windows 7,Windows Server 2008 R2 的附加文件信息所有受支持的基于 x86 的 Windows 7 版本的附加文件收起该表格
对于所有其他文件支持基于 x64 版本的 Windows 7 以及 Windows Server 2008 R2收起该表格
对于所有其他文件支持基于 IA-64 的版本的 Windows Server 2008 R2收起该表格
属性文章编号: 977229 - 最后修改: 2012年11月19日 - 修订: 1.0 这篇文章中的信息适用于:
机器翻译 注意:这篇文章是由无人工介入的微软自动的机器翻译软件翻译完成。微软很高兴能同时提供给您由人工翻译的和由机器翻译的文章, 以使您能使用您的语言访问所有的知识库文章。然而由机器翻译的文章并不总是完美的。它可能存在词汇,语法或文法的问题,就像是一个外国人在说中文时总是可能犯这样的错误。虽然我们经常升级机器翻译软件以提高翻译质量,但是我们不保证机器翻译的正确度,也不对由于内容的误译或者客户对它的错误使用所引起的任何直接的, 或间接的可能的问题负责。 点击这里察看该文章的英文版: 977229
(http://support.microsoft.com/kb/977229/en-us/
)
Microsoft和/或其各供应商对于为任何目的而在本服务器上发布的文件及有关图形所含信息的适用性,不作任何声明。 所有该等文件及有关图形均"依样"提供,而不带任何性质的保证。Microsoft和/或其各供应商特此声明,对所有与该等信息有关的保证和条件不负任何责任,该等保证和条件包括关于适销性、符合特定用途、所有权和非侵权的所有默示保证和条件。在任何情况下,在由于使用或运行本服务器上的信息所引起的或与该等使用或运行有关的诉讼中,Microsoft和/或其各供应商就因丧失使用、数据或利润所导致的任何特别的、间接的、衍生性的损害或任何因使用而丧失所导致的之损害、数据或利润不负任何责任。 | 文章翻译
|





回到顶端








