Delete all OLDDOMAIN ACLs from file system

R

Rick Dang

Hi,
some servers moved from OLDDOMAIN to NEWDOMAIN, that have bidirectional
trust relationships. Their filesystems now have ACLs done by users and
groups from both domains.

How can I delete all the OLDDOMAIN ACLs references from the filesystems'
objects?

With CACLS I could remove OLDDOMAIN's groups and users one by one, but I
cannot remove the whole OLDDOMAIN.

Thanks in advance,
Rick
 
R

Roger Abell [MVP]

Your best bet is likely to write a script that recurses over all
storage structures looking for ACEs that grant/deny principals
of the old domain based on the old domain's rid portion in the
sid used in the grant/deny.
Using other tools has the problem that you cannot specify the
target account with a sid pattern, but must first discover each
different old domain principal that is being used.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top