@ECHO OFF
setlocal
echo ===============================
echo restores default NTFS permissions for C drive
echo ==============================
title restores default NTFS permissions
:menu
echo.
echo [1] Restore the default NTFS permissions of C drive [effective after restart]
echo [0] Exit
echo.
@echo Enter the above number and press Enter
@echo off
set /p menu=
if %menu% == 0 goto exit
if %menu% == 1 goto 1
:1
echo Restore the NTFS permissions of C drive to default, please wait. . . .
Secedit /configure /db %SYSTEMROOT%\security\database\ /Cfg "%SYSTEMROOT%\security\templates\setup " /areas filestore
echo.
The echo recovery is completed and takes effect after restart
echo.
echo [0] Exit
echo.
@echo Enter the above number and press Enter
set /p menu=
if %menu% == 0 goto exit
:exit
exit