Recently some machines got infected, and the folder permissions on drive E were changed. The CACLS command is totally useless,
it says "Access is denied". Then I checked the folder, and there wasn't a single user left. Looking again, there wasn't even a single owner left. After clicking Replace owner on subcontainers and objects, then I could use the CACLS command to change it back.
Now the problem is, I want to ask, can any expert teach me how to change the owner back under DOS? How should this command be written?
I want to write a batch file, changing them one machine at a time is too troublesome. .
Thanks
it says "Access is denied". Then I checked the folder, and there wasn't a single user left. Looking again, there wasn't even a single owner left. After clicking Replace owner on subcontainers and objects, then I could use the CACLS command to change it back.
Now the problem is, I want to ask, can any expert teach me how to change the owner back under DOS? How should this command be written?
I want to write a batch file, changing them one machine at a time is too troublesome. .
Thanks


