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?
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.
If drive A is accessible you can clone the permissions to drive B with a tool called Security Explorer by Quest (Buy or Free Try). It has an option to copy or clone the permissions to another object or folder. See the manual
Good Luck !