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?
Asked
Active
Viewed 3,151 times
-1
-
1If drive A is inaccessible then there isn't any way to copy the folder permissions to drive B. – joeqwerty Jul 12 '18 at 11:17
-
but in case if it is accessible then is it possible? HOW? – Subham Jul 12 '18 at 11:30
-
You should have made your backups preserving permissions if they were intended for this scenario. – Esa Jokinen Jul 14 '18 at 07:18
2 Answers
1
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.
Nixphoe
- 4,524
- 7
- 32
- 51
-
Note that if you are copying an entire drive [you need to explicitly exclude the special folders](https://serverfault.com/a/920019/94065). – Harry Johnston Jul 12 '18 at 21:41