Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I think the system set the sharing on about 25% of thousands of folders. I've tried removing the share and readding, but nothing works.

any way to reset them so I can redo the permissions?

I'm using windows 7 home premium

share|improve this question

2 Answers 2

You can use icacls to reset the file/folder permissions via command line.

So if you want to reset all the permissions for file/folders for C:\Test then execute the following set of commands in with elevated privileges ( with administrative rights)

CD C:\
CD Test
icacls * /T /Q /C /RESET

This would be easier than doing it via GUI.

share|improve this answer

I will bet you will end up using takeown

takeown [/s <Computer> [/u [<Domain>\]<User name> [/p [<Password>]]]] /f <File name> [/a] [/r [/d {Y|N}]]

which will allow you to become owner of multiple files by descending to subdirectories. You will be able to access all of them but the ntfs permissions will still need to be fixed. After you become owner just repeat the process of adding the permissions.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.