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

Re: Checking Folder Ownership and Permissions in VBScript by Steven

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



Re: Checking Folder Ownership and Permissions in VBScript by Roger

Roger
Sat Nov 12 00:09:39 CST 2005

The wmi methods are the most direct.
Download the xcacls.vbs script Steve has mentioned as it
has examples of all the needed processing - but, a word of
warning, it is rather involved to roll your own as you are walking
structures a could layers deep off a list of root nodes while at
same time trying to "summarize" in human readable form.

--
Roger Abell
Microsoft MVP (Windows Server : Security)
MCDBA, MCSE W2k3+W2k+Nt4
"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



Re: Checking Folder Ownership and Permissions in VBScript by john

john
Mon Nov 14 07:11:25 CST 2005

Roger Abell [MVP] wrote:
>The wmi methods are the most direct.
>Download the xcacls.vbs script Steve has mentioned as it
>has examples of all the needed processing - but, a word of
>warning, it is rather involved to roll your own as you are walking
>structures a could layers deep off a list of root nodes while at
>same time trying to "summarize" in human readable form.
>
>> 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


Thanks for the responses. I will try it!

--
Message posted via http://www.winserverkb.com