woensdag 23 november 2011

remove SYSTEM-owned files Win7

(source:http://www.blogsdna.com/2166/how-to-delete-undeletable-files-in-windows-7.htm)
In order to access the files and folder for manipulation, modification or deletion, we will need to take control of the files under Windows 7. Here are two command line syntaxes to instantly take ownership of such files,
For Files:
takeown /f file_name /d y
icacls file_name /grant administrators:F
For Directories (will perform action recursively):
takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t
Please keep in mind above syntaxes will grant full permission to administrator group hence you must be a part of administrator group to take advantage of above command.

Geen opmerkingen:

Een reactie posten