Select the product you need help with
Qu? v? không th? c?p nh?t v? trí m?c tiêu c?a di?n đàn các t?p tin chia s? trong b? nh? cache phía khách hàng di?n đàn t?p tin mà không có s? cho phép qu?n tr? trong Windows Server 2...ID c?a bài: 977229 - Xem s?n ph?m mà bài này áp d?ng vào. ? Trang nàyTri?u ch?ngH?y xem xét k?ch b?n sau đây: K?ch b?n 1
K?ch b?n 2
Gi?i phápĐ? gi?i quy?t v?n đ? này, cài đ?t chuyên bi?t hotfix sau trên máy tính b? ?nh hư?ng. Sau khi b?n cài đ?t chuyên bi?t các hotfix, b?n có th? c?p nh?t h? sơ chia s? m?c tin thư thoại trong b? nh? cache c?a CSC mà không có thông tin hành chính. Lưu ?: m?c dù hotfix này đư?c bao g?m trong Windows Server 2008 R2 và Windows 7 SP1, b?n s? c?n ph?i thêm vào s? ki?m nh?p đ? kích ho?t các ch?c năng. Hơn n?a, b?n s? c?n ph?i cài đ?t chuyên bi?t dư?i đây hotfix b? sung đ? làm cho các phương pháp RenameItemEx có s?n trong SP1: 2610379
(http://support.microsoft.com/kb/2610379/
)
Chính sách chuy?n hư?ng m?c tin thư thoại không ho?t đ?ng n?u ngư?i dùng trư?c đó thi?t l?p m?t m?c tin thư thoại chuy?n hư?ng sang m?t ch? đ? gián tuy?n trong Windows 7 ho?c trong Windows Server 2008 R2 Thông tin hotfixM?t hotfix đư?c h? tr? có s?n t? Microsoft. Tuy nhiên, hotfix này là nh?m kh?c ph?c ch? s? c? đư?c mô t? trong bài vi?t này. Hotfix này ch? áp d?ng cho h? th?ng đang g?p v?n đ? mô t? trong bài vi?t này. Hotfix này có th? nh?n đư?c th? nghi?m b? sung. V? v?y, n?u b?n không b? ?nh hư?ng b?i v?n đ? này, chúng tôi đ? ngh? b?n đ?i cho C?p nh?t ph?n m?m ti?p theo có ch?a hotfix này.N?u các hotfix có s?n đ? t?i v?, có là m?t ph?n "Hotfix download available" ? đ?u bài vi?t cơ s? ki?n th?c này. N?u ph?n này không xu?t hi?n, liên h? v?i b?n ghi d?ch v? khách hàng c?a Microsoft và h? tr? đ? có đư?c các hotfix. Lưu ? N?u v?n đ? khác x?y ra ho?c n?u b?t c? x? l? s? c? là c?n thi?t, b?n có th? c?n ph?i t?o m?t yêu c?u b?n ghi d?ch v? riêng bi?t. Các chi phí h? tr? thông thư?ng s? áp d?ng đ? h? tr? thêm câu h?i và v?n đ? mà không đ? đi?u ki?n cho hotfix này c? th?. Cho m?t danh sách đ?y đ? c?a Microsoft b?n ghi d?ch v? khách hàng và h? tr? s? đi?n tho?i ho?c đ? t?o ra m?t yêu c?u b?n ghi d?ch v? riêng bi?t, ghé thăm Web site sau c?a Microsoft: http://support.Microsoft.com/contactus/?WS=support Lưu ? Các h?nh th?c "Hotfix download available" s? hi?n th? các ngôn ng? mà các hotfix có s?n. N?u b?n không nh?n th?y ngôn ng? c?a b?n, đó là v? m?t hotfix là không có s?n cho ngôn ng? đó.
(http://support.microsoft.com/contactus/?ws=support)
Đi?u ki?n tiên quy?tĐ? áp d?ng hotfix này, b?n ph?i ch?y Windows 7 ho?c Windows Server 2008 R2.ki?m nh?p thông tinGhi chú
322756 Đ? s? d?ng các hotfix trong gói này, b?n ph?i t?o m?t khóa registry. Đ? làm đi?u này, h?y làm theo các bư?c sau:
(http://support.microsoft.com/kb/322756/
)
Làm th? nào đ? sao lưu và khôi phục s? ki?m nh?p trong Windows
Kh?i đ?ng l?i yêu c?uB?n ph?i kh?i đ?ng l?i máy tính sau khi b?n áp d?ng hotfix này.Thông tin thay th? hotfixHotfix này không thay th? m?t hotfix phát hành trư?c đó.Chi tieát taäp tinPhiên b?n toàn c?u c?a hotfix này cài đ?t chuyên bi?t t?p đ? thu?c tính đư?c li?t kê trong b?ng dư?i đây. Nh?ng ngày tháng và th?i gian cho nh?ng t?p tin đư?c li?t kê trong Gi? Qu?c t? Ph?i h?p (UTC). Nh?ng ngày tháng và th?i gian cho các t?p tin trên máy tính c?c b? c?a b?n đư?c hi?n th? trong th?i gian đ?a phương c?a b?n cùng v?i xu hư?ng th?i gian ti?t ki?m ánh sáng ban ngày (DST) hi?n t?i c?a b?n. Ngoài ra, nh?ng ngày tháng và th?i gian th? thay đ?i khi b?n th?c hi?n m?t s? ho?t đ?ng trên các t?p tin.Windows 7 và Windows Server 2008 R2 t?p tin thông tin ghi chúQuan tr?ng Hotfixes Windows 7 và Windows Server 2008 R2 Hotfix đư?c bao g?m trong cùng m?t gói. Tuy nhiên, hotfix trên trang Hotfix yêu c?u đư?c li?t kê trong c? hai hệ điều hành. Đ? yêu c?u các gói hotfix áp d?ng cho m?t ho?c c? hai hệ điều hành, ch?n các hotfix đư?c li?t kê dư?i "Windows 7/Windows Server 2008 R2" trên trang. Luôn luôn đ? c?p đ?n "Áp d?ng đ?" ph?n trong bài vi?t đ? xác đ?nh hệ điều hành th?c t? m?i hotfix áp d?ng cho.
Cho t?t c? các h? tr? x 86 d?a trên phiên b?n c?a Windows 7Thu g?n b?ng này
Cho t?t c? các h? tr? x 64 d?a trên các phiên b?n c?a Windows 7 và Windows Server 2008 R2Thu g?n b?ng này
Cho t?t c? các h? tr? IA-64 d?a trên các phiên b?n c?a Windows Server 2008 R2Thu g?n b?ng này
T?nh tr?ngMicrosoft đ? xác nh?n r?ng đây là m?t v?n đ? trong s?n ph?m c?a Microsoft đư?c li?t kê trong ph?n "Áp d?ng cho". Thông tin thêmĐ? bi?t thêm chi ti?t v? làm th? nào đ? c?u h?nh máy tính sau khi b?n cài đ?t chuyên bi?t các hotfix, h?y làm theo các bư?c sau đ? đ?t đư?c các hành vi mong mu?n mô t? ? trên b?i k?ch b?n 1:
Đ? bi?t thêm chi ti?t v? làm th? nào đ? c?u h?nh máy tính sau khi b?n cài đ?t chuyên bi?t các hotfix, h?y làm theo các bư?c sau đ? đ?t đư?c các hành vi mong mu?n mô t? ? trên b?i k?ch b?n 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 Đ? bi?t thêm chi ti?t v? thu?t ng? C?p nh?t ph?n m?m, nh?p vào s? bài vi?t sau đ? xem bài vi?t trong cơ s? ki?n th?c Microsoft:
(http://support.microsoft.com/kb/976698/
)
Qu? v? không th? c?p nh?t v? trí m?c tiêu c?a di?n đàn các t?p tin chia s? trong b? nh? cache phía khách hàng di?n đàn t?p tin mà không đư?c phép hành chính824684
(http://support.microsoft.com/kb/824684/
)
Mô t? thu?t ng? chu?n đư?c s? d?ng đ? mô t? C?p nh?t ph?n m?m MicrosoftThông tin t?p b? sungThông tin b? sung t?p tin cho Windows 7 và Windows Server 2008 R2T?p b? sung cho t?t c? các h? tr? x 86 d?a trên phiên b?n c?a Windows 7Thu g?n b?ng này
T?p b? sung cho t?t c? các h? tr? x 64 d?a trên các phiên b?n c?a Windows 7 và Windows Server 2008 R2Thu g?n b?ng này
T?p b? sung cho t?t c? các h? tr? IA-64 d?a trên các phiên b?n c?a Windows Server 2008 R2Thu g?n b?ng này
Thu?c tínhID c?a bài: 977229 - L?n xem xét sau cùng: 19 Tháng Mười Một 2012 - Xem xét l?i: 1.0 Áp d?ng
Máy d?ch QUAN TRỌNG: Bài vi?t này đư?c d?ch b?ng ph?n m?m d?ch máy c?a Microsoft ch? không ph?i do con ngư?i d?ch. Microsoft cung c?p các bài vi?t do con ngư?i d?ch và c? các bài vi?t do máy d?ch đ? b?n có th? truy c?p vào t?t c? các bài vi?t trong Cơ s? Ki?n th?c c?a chúng tôi b?ng ngôn ng? c?a b?n. Tuy nhiên, bài vi?t do máy d?ch không ph?i lúc nào c?ng hoàn h?o. Lo?i bài vi?t này có th? ch?a các sai sót v? t? v?ng, cú pháp ho?c ng? pháp, gi?ng như m?t ngư?i nư?c ngoài có th? m?c sai sót khi nói ngôn ng? c?a b?n. Microsoft không ch?u trách nhi?m v? b?t k? s? thi?u chính xác, sai sót ho?c thi?t h?i nào do vi?c d?ch sai n?i dung ho?c do ho?t đ?ng s? d?ng c?a khách hàng gây ra. Microsoft c?ng thư?ng xuyên c?p nh?t ph?n m?m d?ch máy này. Nh?p chu?t vào đây đ? xem b?n ti?ng Anh c?a bài vi?t này: 977229
(http://support.microsoft.com/kb/977229/en-us/
)
| D?ch tiêu đ?
|





Quay l?i đ?u trang








