I need to replace corrupted/missing files and folders in Windows 7 64-bit. (A heavy cleanup deleted some stuff that stops SP1 installing).
The path I need to copy into is:
C:\Windows\System32
I have turned off UAC and still get access denied errors (even though the account is in the admin group, and the files/folders are not in use because they don't actually exist).
The problem I have is that I don't want to change the ownership on the folder because it is currently owned by TrustedInstaller and I am not sure how to reinstate the correct permissions after the files are copied.
What I have read suggest I should use the following to gain access from an elevated CMD prompt
takeown /f C:\Windows\System32
icacls C:\Windows\System32 /grant username:F
but that will leave the wrong owner on the whole of System32 which isn't a good idea.
Any ideas how to do this correctly and have the correct permissions afterwards?
The path I need to copy into is:
C:\Windows\System32
I have turned off UAC and still get access denied errors (even though the account is in the admin group, and the files/folders are not in use because they don't actually exist).
The problem I have is that I don't want to change the ownership on the folder because it is currently owned by TrustedInstaller and I am not sure how to reinstate the correct permissions after the files are copied.
What I have read suggest I should use the following to gain access from an elevated CMD prompt
takeown /f C:\Windows\System32
icacls C:\Windows\System32 /grant username:F
but that will leave the wrong owner on the whole of System32 which isn't a good idea.
Any ideas how to do this correctly and have the correct permissions afterwards?










). Point being their flexable. If you have any OEM media (for the correct edition), and a valid legible COA it should activate just fine. Some of the things that did activate (in tests I've run) were actually rather shocking.