SetACL

SetACL is a set of routines for managing Windows permissions (ACLs) from the command line, from scripts and from programs.

http://setacl.sourceforge.net/