Script access to ACL/ACE Data
- From: "Jim de Graff" <rjdegraff@xxxxxxxxxxx>
- Date: Fri, 23 Sep 2005 16:08:49 -0500
I need to do the following on all of our servers
for each non-administrative share on the server
display the share permissions
display the ntfs permissions on the associated folder
next
I wrote the code to get a list of all of the shares but I have no idea what
calls to make to get the access control entries for either a share or a
folder (or file, for that matter). Can anyone tell me how to get this
information please?
I only need to know which users/groups have which access to the level of
READ
READ/WRITE
FULL
Some sample output might be
\\wpg-apps-87\Applications$
Pyhsical Path - G:\Applications
Share Permissions
Everyone - RW
NTFS Permissions
Administrators(WPG_APPS-87\Administrators) - F
EngSyst(HYDRO) - RW
TransPlan(HYDRO) - R
It might also be nice to know if these permissions are explicit or
inherited. If I could get the code to actually retrieve the permissions
I could manage the rest by myself.
.
- Follow-Ups:
- Re: Script access to ACL/ACE Data
- From: JHP
- Re: Script access to ACL/ACE Data
- Prev by Date: Finger
- Next by Date: Re: writing to a share during computer startup script
- Previous by thread: writing to a share during computer startup script
- Next by thread: Re: Script access to ACL/ACE Data
- Index(es):
Relevant Pages
|