Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Need help in restoring default permissions of system on specific Drive

19 Jan 2014   #1

Windows 7 64 Bit
Need help in restoring default permissions of system on specific Drive

Hi all,

I had a bit of a network security breach earlier today. And decided later to fiddle around with the security permissions of my drives in a attempt to reduce the risks to my system.

Then I made a huge mistake that I only realised afterwords, "naturally",...

I had set the drives system permissions to not allow any changes to be made to the drive or its permissions...!

Now I am quite stuck with my finger up somewhere since I do not find any way to restore the permissions to default and I have no backup to restore to. I have attempted the suggested cmd method of,

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

But does not get all of the database entries restored, I have gone to administrator and accessed the regedit to no avail.

Please help I did see another thread where the following batch file was given to fix a similar problem but it gives me an error.

Bat file unlock:

@echo off

title File/Folder Restriction Menu
echo Folder Restriction Menu
echo Please Enter Access Level...
set /p a=Enter Path Of File/Folder:
set /p b=User Name:
set /p c=Permission Type:
if %c%==deny goto lock
if %c%==grant goto unlock
if %a%==menu goto start2
if %b%==menu goto start2
if %c%==menu goto start2
cacls %a% /e /d %b%
goto start2
cacls %a% /e /g %b%:f
goto start2

"The system cannot find the batch label specified - start2"

Please help if anyone has some advice on maybe fixing this problem?

My System SpecsSystem Spec
21 Jan 2014   #2

Windows 7 Pro x64 SP1

Blade, the problem with your batch file is that there really is not a batch label called :start2

which is what the batch file is looking for to goto..

My System SpecsSystem Spec
02 Jun 2014   #3

win 7

Maybe this helps: i accidentally removed permission for 'authenticated users', and now getting error "access is denied" for my D drive, Then what i did and worked: My computer->right click on D drive- Properties-Security-add/edit and type Authenticated users , ok , all restored..
My System SpecsSystem Spec


 Need help in restoring default permissions of system on specific Drive

Thread Tools

Similar help and support threads
Thread Forum
What specific drive will allow for a successful Win7 System Image?
In the not too distant future I will be upgrading from Windows 7 to Windows 10. I've backed up everything but I know I need a system image as well. I have two Seagate backup drives (the 3tb one that never worked and the 1tb slim backup plus portable that used to work), and while the Seagate...
Backup and Restore
Restoring via system image using external hard drive
Despite the great help I received yesterday, I am still in the same boat. I am trying to "clean up" my Dell Inspiron 1012 (Dell Mini). It does not have a CD drive...only USB ports. I have an external hard drive connected to one of the USB ports. The computer has the Windows 7 Professional OS...
Backup and Restore
Restoring full permissions
Somehow, I no longer have full permissions to parts of my hard drive, even though this is an administrator account (and the only one on the computer). For example, when I try to replace files in Program Files, it says "Destination Folder Access Denied - You need permission to perform this...
General Discussion
Restoring partition drive permissions
Hello, I was tweaking some security permissions on my partition D and removed the options "Authenticated Users" and "Users", now I can't access it, even though I'm an administrator. After some time playing with it it seems I can't find how to add those two permissions back like it was. Can...
General Discussion
Restoring system image to larger hard drive
When I replaced my hard drive to go from 160 GB to 500 GB, I restored a system image in Windows 7 from an external drive. Now the new drive works great, but windows still reports it as having approx 160 GB. In the BIOS setup it recognizes it as 500 GB. It there a way to have Windows recognize the...
Backup and Restore

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:08.
Twitter Facebook Google+