R
Ryan Rupert
Is it possible using scripting technologies and command line
NTFS permissions utilities to perform the following operation?
I want to verify that permissions on folders (all with the same
name) throughout a large directory tree are the same as permissions
on a model/template folder.
ENVIRONMENT
I have a large directory tree that is based on a "template folder".
As needed I XCOPY.EXE (with permissions retention options) this
template folder to other folders deeper in the folder tree.
What I want to script is the ability to verify that all folders
that are based on this template have the same permissions as
this template. This is made easier by the fact that sub-folders
of the template folder never change name, the only name change
is on the template folder root, but I don't really need to verify
permissions on folders based on the template root.
ILLUSTRATION
TEMPLATE FOLDER
c:\template folder\folder\
c:\template folder\folder\folder 1\
c:\template folder\folder\folder 2\
FOLDER TREE
C:\A\template folder copy 1\folder\
C:\A\template folder copy 1\folder\folder 1\
C:\A\template folder copy 1\folder\folder 2\
C:\A\template folder copy 2\
C:\A\template folder copy 2\folder\folder 1\
C:\A\template folder copy 2\folder\folder 2\
GOAL
Again, what I want to do is compare the template
folder "folder 1" permissions with the permissions
of deeper nested "folder 1" folders. When the script
recognized a difference, that is the condition I want
reported.
NTFS permissions utilities to perform the following operation?
I want to verify that permissions on folders (all with the same
name) throughout a large directory tree are the same as permissions
on a model/template folder.
ENVIRONMENT
I have a large directory tree that is based on a "template folder".
As needed I XCOPY.EXE (with permissions retention options) this
template folder to other folders deeper in the folder tree.
What I want to script is the ability to verify that all folders
that are based on this template have the same permissions as
this template. This is made easier by the fact that sub-folders
of the template folder never change name, the only name change
is on the template folder root, but I don't really need to verify
permissions on folders based on the template root.
ILLUSTRATION
TEMPLATE FOLDER
c:\template folder\folder\
c:\template folder\folder\folder 1\
c:\template folder\folder\folder 2\
FOLDER TREE
C:\A\template folder copy 1\folder\
C:\A\template folder copy 1\folder\folder 1\
C:\A\template folder copy 1\folder\folder 2\
C:\A\template folder copy 2\
C:\A\template folder copy 2\folder\folder 1\
C:\A\template folder copy 2\folder\folder 2\
GOAL
Again, what I want to do is compare the template
folder "folder 1" permissions with the permissions
of deeper nested "folder 1" folders. When the script
recognized a difference, that is the condition I want
reported.