recursively changer owner windows 7
recursively changer owner windows 7
Somehow I accidentally set all the files in a subfolder to "No Owner' and Je n'arrive pas à change all the permissions. I can change one by hand by changing the owner then setting permissions but how can I change owner of all the files in this directory at once?
Re: recursively changer owner windows 7
Use [`takeown`](http://technet.microsoft.com/en-us/library/cc753024.aspx) from the invite de commandes to take ownership a folder, all its subfolders and files recursively:
```
takeown /f "c:\folder\subfolder" /r
```
Cela fonctionne well, but si vous ne run your ligne de commande console en tant qu'administrateur it may fail for files you don't own.
```
takeown /f "c:\folder\subfolder" /r
```
Cela fonctionne well, but si vous ne run your ligne de commande console en tant qu'administrateur it may fail for files you don't own.