Steven
Fri Nov 11 17:48:13 CST 2005
Did you try xcacls.vbs?? If you do not like that then take a look at
fileacl. --- Steve
http://support.microsoft.com/?id=825751
Example of command to show permissions for folders in the system drive.
cscript d:\windows\xcacls.vbs %systemdrive%\ /s
Example of output.
**************************************************************************
Directory: D:\temp1
Permissions:
Type Username Permissions Inheritance
Allowed BUILTIN\Administrators Full Control This Folder Only
Allowed BUILTIN\Administrators Full Control This Folder, Subfolde
Allowed \CREATOR OWNER Full Control Subfolders and Files
Allowed \Everyone Read This Folder, Subfolde
Allowed NT AUTHORITY\SYSTEM Full Control This Folder, Subfolde
Allowed BUILTIN\Users Read and Execute This Folder, Subfolde
Allowed BUILTIN\Users Special (E2) This Folder and Subfo
Allowed BUILTIN\Users Special (E3) This Folder and Subfo
No Auditing set
Owner: BUILTIN\Administrators
"john.hundley" <u15661@uwe> wrote in message news:57373603c1010@uwe...
> Can anyone tell me how I can get the ownership and permissions on a folder
> using VBScript? xcacls does not give ownership and the way it outputs the
> permissions is crap.
> Thanks,
> John