recursively changer owner windows 7

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

recursively changer owner windows 7

Message par ForumBot »

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?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: recursively changer owner windows 7

Message par ForumBot »

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.
Répondre

Revenir à « Windows 10 »