???? ID: 250267 - ????? ???????: 02 ?????? 2010 - ??????: 2.0

?? ?? ???? ????? ?? ????? ??????? ?? ??? ??????? ??????????? ??????? ???? ?? ???? ?? ????

?????? ??????This article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
??? ?? ??????? ???? | ??? ?? ??????? ????

??????

?? ?? ????????? ??????? ?? ????????? ????? ?? ?????, ?? ????? ?? ?? ????? ????? ?? ???, ????? ????? ?? ???? ????? ???? ????? ?? ??????? ????? ?? ??????? ????? ???? ??, ??????? ????? ????? ?? ??????? ???? ???? ????? ??????? ?????????? (SIDs) ?? ????? ???? ?? ????? ?? ???? ?? ??????? ?? ?????? ?? ??? ?? ?????? ?? ????? ???? ???

?????

?? ?? ????????? ??????? ?? ????????? ?? ????? ?? ???? ????? ?? ???? ???? ????? ?? ????? ?? ?? ???? ?? ???, ???? ????? ?? ??????? ???? ?? ??? ????? ???????? ???????????? ?? ??? ??? ????????????????? ????? ??? ?? ????? ???????? ???????????? ??? discretionary ????? ???????? ???? (DACLs) ??????? ?? ????????? ?? ??? ?? ??? ???

?? ??????? ?? ???? ??, ?? ????? ????? Microsoft Windows NT 4.0 ????? ?? Microsoft Windows 2000 Server ??? ??? ????

????

?? ??????? ????? ???? ??, ??????? ???? ????? ?? ??????? ?????? ?? ??? ??????? ?????????? (SID) ??? ???? ?? ????? ?? ????? ???? (SID ??? ???? ????? ?? ???? ?????????? ???? ?? ??? ?? ????? ??? ?? ????? ?? ????.) ?? SID ??? ???? ????? ?? ???? ???? ????? ?? ????? ?? ?? ????? ???? ???? ????? ????? ???? ????? ?? ??????? ???? ?? ?????????? ???? ?? ??? SID ????? ?? ???? ????????

????????

?? ??????? ?? ?????? ?? ???, ????? ????? ?? ???? ????::
  1. ???? ????? ?? ??????? ???? ??????? ?? ???? ??? ??????:
    1. ???? ????? ?? ??? ?????????? ???? ?? ????? ?? ??? ??? ??? ?? ?????
    2. ?? ????? ????????? ?? ????? ???? ???? ????, ?? ???? ??? ENTER ?????:
      addusers\\ServerName/dFilename.txt
      ?? ??????? ???,Servername???? ????? ?? ??? ?? ??Filename.txt??????? ???? ??????? ???? ????? ?? ????? ???
    3. ??????? ????Filename.txt????? ?? ?????????? ???? ?? ??????? ?? ??????? ???? ??????? ?????, ?? ?? ???? ?? ???? ???? ??? ?? ??????? ?????? ?? ???, Renfile.txt ?? ??? ??? ??????? ????? ???????

      ????????????????? ???? ??????? ???? ??? ????
    4. ????? ????? ????? ?? ??? ??????? ????? ?? ????????? ??????
  2. ????? ?? ??????? ???? ?? ??? ??? ??????? ????? ????? ?? ??????? ???? ???? ????? ?? ????????? ?????:
    1. ????? ?? ???? ????? ?? ??? ??? ????? ?? ????? ?? ??? ?????????????????
    2. ?? ????? ????????? ?? ????? ???? ???? ????, ?? ???? ??? ENTER ?????:
      addusers\\DomainName/c renfile.txt
      ?? ??????? ???,DomainName????? ?? ??? ??, ?? Renfile.txt ?? ???? ????? ?? ??????? ???? ??????? ??? ????? ??? ??? ???? ????? ??? ????? ???? ??, ?? ?????? ????? ?????? ??? ???? ????? ??? ????? ??, ?? ???? ?????? ?? ??? ???? ?? ????? ????? ???????
  3. ????? ????? ?? ??? ???? ????? ?? ???? ?? ????????? ?????:
    1. ????? ?? ?? ????? ?? ??? ??? ????? ?? ??? ???????????????? ?? ???? ????? ?? ???? ?? ????? ???
    2. ??????? ????? ?? ???? ???? ??????? ??????
    3. ???? ????? ?? ??? ?? ????, ?? ???? ?? ??????? ????? ?? ??? ???? ??????? ??? ????????? ?????? ??? ???? ?? ???, ????? ??? ?? ???? ?? ???? ????::
      • Xcopy ????-?????? ????? ?? ????? ????, ????? ????????? ?? ????? ???? ???? ????, ?? ???? ??? ENTER ?????:
        xcopy\\source\*.* \\destination/O /X /E /H /K
        ?? ??????? ???,????????? ????? ??????? ?? ?????? ?? ??? ?? ??????????? ?? ????????????? ????? ??? ???? ??? ?? ?? ??????? ?? ????? ?? ??? ?? ??????????? ???
      • Robocopy ????-?????? ????? ?? ????? ????, ????? ????????? ?? ????? ???? ???? ????, ?? ???? ??? ENTER ?????:
        robocopy???????????/secfix /xo /xn /xc K
        ?? ??????? ???,????????? ????? ??????? ?? ?????? ?? ??? ?? ??????????? ?? ????????????? ????? ??? ???? ??? ?? ?? ??????? ?? ????? ?? ??? ?? ??????????? ???

        ???:??? ?? ?????? ?????? ????? ?????? ?? ?? ???? ??????????? ???? ???? ????? ???, ?? ?? ????? ?????? ??Robocopy???? ????? ??????? ??????? ?????? ????, ?? ?? ????? ?? ??? ???????? ?? ????? ??Robocopy????? ?? ???? command/xo,/xn??,/xc?????????
    4. ????? ????? Renfile.txt ????? ?? ????????? ??????
  4. ???? ????? ?? ??????? ???? ?? ??? ?? ????? ?? ??? SID ??? ??????? ????, ?? ?? ?????? ???? ????? ?? ??????:
    1. ??????? ???? ???? ?? ??? ??????? ????? ?? ??? ?? ????? Renfile.txt ????? ?? ????????? ?????? ?? ????? ??? ??? ???? ???? Listmemberlocal.txt ??? ?? ????? ?? ???? ????? ?? ??????? ???? ?? ???? ??? ??? ???? ?????? There must be only one name displayed in each row. The content of the Listmemberlocal.txt file must appear similar to the following text, where "LocalA" and "LocalB" are the names of local groups:
      LocalA
      LocalB
    2. Create three batch files on the second server. These batch files retrieve and store the SID values to a text file. You must create these files in one folder. The contents of the batch files must be similar to the following sample code.

      ???:In this code,groupssid.txtis a placeholder for the file where the SID values are stored. Save the following to a file that is named Listsid.bat.
      • echo off
        cls
        if exist groupssid.txt del groupssid.txt
        for /F "tokens=1" %%a in (listmemberlocal.txt) do call listsid1.bat %%a
        
        Save the following to a file that is named Listsid1.bat.
      • getsid \\2b21d %1 \\w2kdomain1.loc %1 >sid1.txt
        for /F "skip=1 tokens=5,7" %%a in (sid1.txt) do call listsid2.bat %%a %%b
        
        ???:Here,2b21dis a placeholder for the NetBIOS name of the first server, andw2kdomain1.locis a placeholder for the domain name of the second server. Save the following to a file that is named Listsid2.bat.
      • echo %1 %2 >>groupssid.txt
    3. At a command prompt, locate and then run the Listsid.bat file.
    4. To view the SID values, open the Groupssid.txt file. The content of the Groupssid.txt file is similar to the following:
      2B21D\LocalA S-1-5-21-90593156-579754539-1338337383-1002 
      W2KDOMAIN1\LocalA S-1-5-21-1844237615-261478967-839522115-1126 
      2B21D\LocalB S-1-5-21-90593156-579754539-1338337383-1003 
      W2KDOMAIN1\LocalB S-1-5-21-1844237615-261478967-839522115-1127 
      2B21D\LocDom1 S-1-5-21-90593156-579754539-1338337383-1004 
      W2KDOMAIN1\LocDom1 S-1-5-21-1844237615-261478967-839522115-1125
      
    5. Edit the content of the Groupssid.txt file so that it is similar to the following:
      S-1-5-21-90593156-579754539-1338337383-1002   S-1-5-21-1844237615-261478967-839522115-1126
      S-1-5-21-90593156-579754539-1338337383-1003   S-1-5-21-1844237615-261478967-839522115-1127
      S-1-5-21-90593156-579754539-1338337383-1004   S-1-5-21-1844237615- 261478967-839522115-1125
      
      In this content, the SID for the first local group is followed by the SID for the local group in the domain of the second server.
  5. Replace the SID values of all the first server's local groups with the SID values of the second server's domain local groups:
    1. Create two batch files on the second server. The contents of the batch files must be similar to the following:
      • for /F "tokens=1,2" %%a in (groupssid.txt) do subin.bat %%a %%b
        ???:Here,groupssid.txtis a placeholder for the file that contains the local group SID values for both the first server and the domain.
      • subinacl /subdirectories e:\root\*.* /replace=%1=%2
        ???:Here,e:\rootis a placeholder for the new folder in the second server to where the first server data is copied.
    2. At a command prompt, locate and then run the Sub.bat file.

???? ???????

The Addusers, Robocopy, Getsid, and Subinacl utilities are available in the Microsoft Windows 2000 Resource Kits. For more information about the Microsoft Windows 2000 Resource Kits, visit the following Microsoft Web site:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/default.mspx?mfr=true (http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/default.mspx?mfr=true)

??????

For additional information about how to retain permissions on files and folders when you copy the files and folders to another computer, click the following article numbers to view the articles in the Microsoft Knowledge Base:
296865  (http://support.microsoft.com/kb/296865/ ) The Subinacl utility arranges access control entries incorrectly
323007  (http://support.microsoft.com/kb/323007/ ) How to copy a folder to another folder and retain its permissions
323275  (http://support.microsoft.com/kb/323275/ ) How to use Robocopy to copy security information without copying any file data

???? ???? ???? ??:
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Server
??????: 
kbprb kbmt KB250267 KbMthi
???? ?????? ???????????? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:250267  (http://support.microsoft.com/kb/250267/en-us/ )