We help IT Professionals succeed at work.

COPY FOLDER STRUCTURE WITHOUT FILES BUT WITH PERMISSIONS

Mattia Minervini
Mattia Minervini asked
on
hi all!
i need to exactly copy a folder structure, without file but with windows active directory and permissions
So my 2019 root folder has to become 2020, ready to use with subfolder and custom rights
I've tried robocopy Gui with options /SEC for rights and /MIR to make mirror, but rights are not copied (on source i have a subfolder with EVERYONE rights in read, and i cannot find this specific right on destination)
Can you help me? File Server is Windows 2012 r2, file system NTFS, rights are assigned on MS Active Directory users and groups
Thanks
M
Comment
Watch Question

Technology and Business Process Advisor
Most Valuable Expert 2013
Commented:
Have you tried XCOPY?

XCOPY "X:\Source Folder\" "Y:\Destination area\" /T /E /O

Author

Commented:
perfect, it works.
also rights on folder are correct, and no file are copied
thanks!