I have windows server 2012 r2 and two storage drive. lest say A and B. I have created users and given files and folder access in drive A but now it is crashed and now I want to give all the same user permission in Drive B. I have same folders in both drives. How can I achieve it? Is there any way to copy the access rights and permissions?
Answer
With drive A being accessible as you added.
Robocopy
is a built in tool that can do that. /E
will give you all the subdirectories. Look into using it with the /sec
flag, but /copyall
is good too. You’ll end up at something like this robocopy [source] [destination] /S /copyall
. robocopy /?
for more info.
xcopy
is another built in tool you can use. xcopy [source] [destination] /S /K /O /X
. xcopy /?
for more info.
Attribution
Source : Link , Question Author : Subham , Answer Author : Nixphoe