SCopy is a command-line utility used to copy files and folders from NTFS partitions with their security intact. This utility can be found in the Windows NT Server Resource Kit. Scopy syntax and available switches are listed as follows:
Scopy tries to use the following user privileges in these cases:
Scopy [source] [destination] [/o] [/a] [/s]
Where: [source] specifies the source for files to be copied.
[destination] specifies where to copy files to.
/o copies owner security information.
/a copies security auditing information.
/s copies all files in sub-folders.
/? shows all command-line options.
- The backup files and folders privilege allows you to copy files when ordinarily your access is restricted at the source.
- The restore files and folders privilege is needed to use the /o switch to copy files that are not your own (/o switch copies ownership information).
- The manage auditing and the security log privilege is needed to use the /a switch (the /a switch copies security auditing information).
PermCopy is a command-line utility that copies share-level permissions (access control lists [ACLs]) from one share to another. This utility can be found in the Windows NT Server 4.0 Resource Kit. Syntax is as follows:
- Use the command-line utility Scopy.exe with the /s switch (other switches optional) to copy all sub-directories and files from the root directory to the target directory on the new partition. Verify that all directories were copied correctly. Depending on the number of directories and files, the results are printed in the command prompt window.
- The shares are not created or copied using SCopy. The shares must be recreated on the new directories before the share level permissions can be copied from the old share.NOTE: If the entire directory structure is being restored to another server, click the article number below to view the article in the Microsoft Knowledge Base:141589 How to Restore Share Definitions to Another Server
- You can create shares remotely using File Manager (Run: winfile).
- Open File Manager, click Disk on the title bar, and then Connect Network Drive.
- After you map a drive to the target computer, select the file, click Disk on the title bar, and then click Share As.
- Create the desired share and sharename.
- Step three above is repeated for each share that needs to be restored.
- Using the command-line utility Permcopy.exe, copy the share permissions of each original share to each new target share.
Id. de artículo: 174273 - Última revisión: 10/31/2006 - Revisión: 1