Johnnie
Thu Jul 22 10:01:36 CDT 2004
Thank you for the information, trying to incorporate the knowledge in my
script.
"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
news:OEhURsrbEHA.1644@tk2msftngp13.phx.gbl...
> > Using the capabilities of VBScript, is there way to determine the NTFS
> > permissions assigned to either a file or directory?
>
> Native VBScript can do very little by itself. Anything useful requires
some
> sort of COM component.
>
> You can do this with WMI .
>
> There's a basic example in the GetSecurityDescriptor method docs to get
you
> started...
>
> Win32_LogicalFileSecuritySetting.GetSecurityDescriptor method [WMI]
>
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/getsecuritydescriptor_method_in_class_win32_logicalfilesecuritysetting.asp
>
> Win32_SecurityDescriptor class [WMI]
>
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_securitydescriptor.asp
>
> Win32_ACE class [WMI]
>
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_ace.asp
>
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
> Sammamish WA US
>