The following script will reset file permissions to factory defaults. All members of the Administrators Group and System Account will be granted full rights to all files and folders on the SystemDrive and the ownership of all files and folders will be set to the Administrators Group. Using a User Account with Administrative privileges, you will then be able to delete any file on the hard disc as you would normally. System File Protection is still in place and functions properly. (Please Note: If you only have a small number of files and/or files to delete, you may wish to use the Unlocker utility.)
Windows XP
If you are using Windows Vista or Windows 7, you would simply execute the following two commands:
JDER2QQ35NP5
Windows XP
- Download and then install the Subinacl.exe file.
- Start Notepad.
- Copy and then paste the following text into Notepad.
cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
subinacl /subdirectories %SystemDrive%\*.* /setowner=administrators
subinacl /subdirectories %SystemDrive%\*.* /grant=administrators=f /grant=system=f - Save this Notepad file as ResetFilePermissions.cmd.
- Double-click the ResetFilePermissions.cmd file to run the script.
- Note This script file may take a long time to run. You must run this script as an administrator.
- Reboot.
If you are using Windows Vista or Windows 7, you would simply execute the following two commands:
- Click Start - Run.
- Type: cmd
- Hit Enter.
- Type: takeown /f %SystemDrive%\*.* /r /d y
- Hit Enter.
- Type: icacls %SystemDrive%\*.* /grant administrators:F /t
- Hit Enter.
- Upon completion, reboot.
JDER2QQ35NP5
Comments
Post a Comment