Because of security, some of the permissions on C disk do not know where to set up, this provides a batch method to restore the system default permissions.
Copy Code code as follows:
@ECHO off
Setlocal
Echo ===============================
echo restores default NTFS permissions for C disk
Echo ==============================
Title Restore default NTFS permissions
: Menu
Echo.
echo [1] Restores the C disk default NTFS permission [effective after reboot]
echo [0] Exits
Echo.
@echo Enter the number above and press ENTER
@echo off
set/p menu=
If%menu% = = 0 goto exit
if%menu% = = 1 goto 1
: 1
echo restores the C disk NTFS permissions to the default, please ....
secedit/configure/db%systemroot%\security\database\cvtfs.sdb/cfg "%systemroot%\security\templates\setup Security.inf "/areas Filestore
Echo.
echo recovery complete, reboot effective
Echo.
echo [0] Exits
Echo.
@echo Enter the number above and press ENTER
set/p menu=
If%menu% = = 0 goto exit
: Exit
Exit
The above code is saved as Moren.bat
In fact, the most important thing is this sentence:
secedit/configure/db%systemroot%\security\database\cvtfs.sdb/cfg "%systemroot%\security\templates\setup Security.inf "/areas Filestore