Thursday, May 07, 2015

Take Ownership and Assign Permissions to Yourself on Windows

Sometimes on mounted external drives, you are not the owner (don't ask me why, I'll never understand what's the reasoning behind Windows in general) and cannot change/view files.
Try this:

# Recursively take ownership of directory:
> takeown /f "c:\path"

# Reset permissions recursively
> icacls "c:\path" /reset /T

No comments: