Pages

Monday, December 5, 2011

Give permission to file in windows 7




To take ownership of the file, you’ll need to use the takeown command. Here’s an example:


takeown  /f  C:\Windows\System32\en-US\winload.exe.mui

That will give you ownership of the file, but you still have no rights to delete it. Now you can run the cacls command to give yourself full control rights to the file:


cacls  C:\Windows\System32\en-US\winload.exe.mui  /G  geek:F

Note that my username is geek, so you will substitute your username there.

No comments:

Post a Comment