I ran the script and everything, but I guess I should have been more clear. The permissions are fine on my Windows (C:\) drive, but the errors arise of my Data (E:\) drive. From what I noticed, it didn't help with the errors on my E:\ drive. Do I have to restart my computer to see if it worked?
Sorry if I sound so technologically illiterate :|
Yup, (most) registry changes don't take effect until you reboot. To answer your earlier question regarding %programfiles%:
(That damn smilie :\, I hope you recognize, is supposed to be
DriveLetter;Colon;backslash...that's really irritating.
)
%programfiles% is an environment variable. If your Program Files directory is located at C

Program Files (which is the default) then cmd.exe will read the environment variable and execute subinacl.exe. If your Program Files directory is not in the default location, you'll need to edit that line in the batch file to point to the actual location.
Here's the same batch file. I've added an additional line (at the bottom) to accomodate your E:\ drive. As before save it with the
.bat extension:
Code:
cd /d "%programfiles%\Windows Resource Kits\Tools"
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %temp%\subinacl_output.txt
subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
subinacl /subdirectories E:\*.* /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
By the way, proper use of command line is an advanced area and does not mean you're "technologically illiterate". We are all illiterate until we learn how to read and then put that knowledge to use! :thumbsup: