Can't access system32
- I just upgraded from xp to windows 7. One of the program I had to reinstall requires I download an OCX file. When I try sticking it in my system32 directory I'm told I don't have permission to do so. I'm logged in with an admin account. Why can't I save a file in system32?
TIA
Answers
Hi,
We can save a file to the system32 folder.
When you copy a file to “system32” folder, a prompt indicating "you will need to provide administrator permission to copy this file" will appear. You can click “Continue” to approve this operation. Then, the file is in the "system32" folder.
If the operation failed, please also try the following to reset permissions to default:
Reset the permission
=============
Note: Please perform a full system backup first.
1. Please download the subinacl.msi file from the following link and save the installation patch on the Desktop:
2. Please go to the Desktop and double click the downloaded file.
3. Please select the C:\Windows\System32 folder as the Destination Folder during the installation. Later we will use this tool to reset the permission settings on the current machine.
Note: If UAC (User Account Control) window is prompted for permission to continue, please click "Continue".
4. Click "Start". In the Start Search bar, type: "notepad" (without quotes)and press Enter.
5. Copy the following commands and then paste them into the opened Note padwindow:
@echo off
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=system=f
@Echo =========================
@Echo Finished.
@Echo =========================
@pause
6. After pasting the above commands, please close the Notepad window. Choose Save when you are prompted to save the file. Type "reset.bat" as the file name and choose Desktop from the left panel as the save location.
7. Refer to the Desktop and right click the reset.bat file, then choose "Run as administrator."
8. You will see a DOS-like window processing.
NOTE: It may take several minutes. When it is finished, you will be prompted with the message: "Finished, press any key to continue".
Hope this helps. Thanks.
Nicholas Li - MSFT- Marked As Answer byNicholas LiMSFT, ModeratorMonday, November 16, 2009 4:09 AM
All Replies
Hi,
We can save a file to the system32 folder.
When you copy a file to “system32” folder, a prompt indicating "you will need to provide administrator permission to copy this file" will appear. You can click “Continue” to approve this operation. Then, the file is in the "system32" folder.
If the operation failed, please also try the following to reset permissions to default:
Reset the permission
=============
Note: Please perform a full system backup first.
1. Please download the subinacl.msi file from the following link and save the installation patch on the Desktop:
2. Please go to the Desktop and double click the downloaded file.
3. Please select the C:\Windows\System32 folder as the Destination Folder during the installation. Later we will use this tool to reset the permission settings on the current machine.
Note: If UAC (User Account Control) window is prompted for permission to continue, please click "Continue".
4. Click "Start". In the Start Search bar, type: "notepad" (without quotes)and press Enter.
5. Copy the following commands and then paste them into the opened Note padwindow:
@echo off
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=system=f
@Echo =========================
@Echo Finished.
@Echo =========================
@pause
6. After pasting the above commands, please close the Notepad window. Choose Save when you are prompted to save the file. Type "reset.bat" as the file name and choose Desktop from the left panel as the save location.
7. Refer to the Desktop and right click the reset.bat file, then choose "Run as administrator."
8. You will see a DOS-like window processing.
NOTE: It may take several minutes. When it is finished, you will be prompted with the message: "Finished, press any key to continue".
Hope this helps. Thanks.
Nicholas Li - MSFT- Marked As Answer byNicholas LiMSFT, ModeratorMonday, November 16, 2009 4:09 AM