Search This Blog

2012-01-28

Reset Windows Security Privilege

Product: Windows Vista, 7, 2008

When partition is formatted as NTFS, indirectly there is complication of file owner, and privilege.

When the OS re-installed, all the previous owner will become cryptic user, although the username is identical in new installation (e.g. administrator). Therefore, it will be easier to execute following command to reset its privilege to inherits from parent folder, including sub-directory

icacls C:\Temp /t /reset /c /q

If you still get error, run this

takeown /f C:\Temp

No comments: