Script access to ACL/ACE Data



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.



.



Relevant Pages

  • RE: Pivot table permissions issue
    ... the pivot table design. ... in a split database check the permissions on the back-end ... > display is now of the weeks last chosen. ... > non Admins user receives no warning they are restricted from changing the ...
    (microsoft.public.access.security)
  • Re: Data Views in WSS 3.0
    ... It must retain the permissions from the ... SPD is not as elaborate as Visual Studio but it does provide a lot a ... Actually the info I am trying to display is in the same site collection just ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Delegation in AD not working
    ... That is why I wanted dsacls, it is the most accurate display of what is going on ... permissions tab so anything applied to an OU will not impact one of these IDs ... > CHILD ...
    (microsoft.public.win2000.active_directory)
  • Re: NTFS Permissions return to default upon server reboot
    ... I have three servers with a shared folder on them. ... configured share and NTFS permissions on the folder for groups and users. ... When the servers reboot the share permissions remain the same but the NTFS ...
    (microsoft.public.win2000.security)
  • Re: DataGrid Combo Box problem
    ... >to display in a datagrid. ... >permissions to certain data classes. ... >in combo boxes in the grid and instead of displaying the numeric values, ... > Ron L ...
    (microsoft.public.dotnet.framework.windowsforms)