How do I change the owner of all subfolders and files?

Moved the folder with a huge number of files to another hard disk, endured total commander because Windows does not tolerate long file names, and in the end fucked up permissions, the problem is that when I try to assign permissions for enclosed files and folders climbs error access is denied (not all files, but many). I tried to change the owner recursively, one hell is not at all changing, how to change the owner of everything that is in the folder? Rights of the admin domain are present
icalcs doesn't help, in the end, couldn't handle 4000 files from 264000
June 26th 19 at 14:11
4 answers
June 26th 19 at 14:13
Solution
GUYS, IT'S JUST A GUN!!!

Barely googled this article
https://support.microsoft.com/ru-ru/help/320081/yo...
In the end there is mention of a certain subinacl and it was decided, specifically to change all files in a directory recursively in the domain has helped this team:
subinacl /subdirectories DIRECTORY/*.* /setowner=DOMAIN\USER


P. S. Program is not included in the official supply that for home systems, but for win server 2008 r2, this is some idiocy in the process gugleniya realized that all this pandemonium with the owner and denials of access in the standard box change owner of the folder recursively, NOT a BUG BUT a FEATURE, it's amazing how sometimes ill wind...
P. P. S. Fuck it, one file standard window holder change in the properties of folders and files works, but damn microsoft is trying to get me to go into each folder and manually change the owner of each file??!! This is perfect for my rapping!
it's some kind of idiocy
I pointed out two common ways. - Arlo.OReill commented on June 26th 19 at 14:16
June 26th 19 at 14:15
endured total commander
Use the FAR.ab4ed69ef88a4016a529b32165e3a7c0.png
Other options:
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
 [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
 [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/J]
[/EXCLUDE:file1[+file2][+файл3]...]

 /O Copies the owner information and the data ACL.

ROBOCOPY :: Robust File Copy for Windows

 /COPY:copy flags :: What is copied to file (default is /COPY:DAT).
 (Flags copying: D=Data, A=Attributes, 
 T=timestamps).
 (S=Security=NTFS ACLs, O=owner Information,
 U=auditing Information).

 /SEC :: Copy files with security settings
 (equivalent to /COPY:DATS).
In total also used this feature in the end signed out
376804f3a5cc4f508707d70ba61aa2f1.PNG - Arlo.OReill commented on June 26th 19 at 14:18
view the solution in this thread will be useful - nona33 commented on June 26th 19 at 14:21
June 26th 19 at 14:17
In Windows when you transfer files, access rights are transferred along with the files are not inherited from the target folder is the default behavior.
When you need to inherit the rights of the target folder, I usually copy the files, then delete from the old location. So get rid of the dancing with the rights after the transfer.

From the properties of the root folder owner does not change (the replacement of the owner's child objects)?
Issued any bugs?
:
If the copy is made to another that the access rights are reset.

Your truth. - Arlo.OReill commented on June 26th 19 at 14:20
: see the solution in this thread will be useful - nona33 commented on June 26th 19 at 14:23
June 26th 19 at 14:19
Quite a common problem with transferring files in Windows. Actually return of rights is still possible.
You have already copied the folder highlight, click, right-click, "security", there is "advanced", then tab "owner", then "edit", choose the domain uchetku administrator (not your admin rights, namely Domain Admins!), do not forget to put a tick in "replace owner on subcontainers and objects" (without it is just not at all and changes), patient and waiting. After the procedure, close all the Windows properties and security.
Again open the security tab advanced, it set the right, checkmark "replace all permissions on child object permissions with inheritable permissions from this object", again patient, after the completion happy with this result.
The way is long and dreary, but working.
Can't

23720956b49b4eda8425ceb74c9eecad.PNG - Arlo.OReill commented on June 26th 19 at 14:22
: Well "Domain Admins" well! Where does the local/domain administrator? All the domain administrators group, their owners have to do, the group will have privileges more than specific user. - nona33 commented on June 26th 19 at 14:25
: 8d6655dd59a64535a021825b9e6e4536.PNG - nona33 commented on June 26th 19 at 14:28
Ummm, great. When you transfer the files aren't broken? chkdsk /f /r make, it is very suspicious behavior. Usually the change owner to domain admins solves the problem. - Lucio commented on June 26th 19 at 14:31
: error - no - nona33 commented on June 26th 19 at 14:34
: see the solution in this thread will be useful - nona33 commented on June 26th 19 at 14:37

Find more questions by tags Windows