?????? ??????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.
??????? ???? ???? ?? ??? ??????? ????? ?? ??? ?? ????? 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
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
At a command prompt, locate and then run the
Listsid.bat file.
To view the SID values, open the Groupssid.txt file.
The content of the Groupssid.txt file is similar to the following:
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:
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