Wednesday, July 13, 2011

Managing Permissions from the Command Line in Windows 7

To recursively take ownership of a directory:
takeown  /f <dir name> /r /d y

To recursively set permissions  for a directory:
icacls <dir name> /grant <user or group>:<permission> /T

Run takeown /? or icacls /? to learn more.

Thanks to Ramesh Srinivasan for pointing this out.

No comments:

Post a Comment