Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .