User permissions in WMI
Does anyone know which WMI Class is to be used 开发者_开发百科to getting information of which users or user groups have permission for a given folder?
Yes, it's possible to to get and set file permissions via WMI; here's a MS Scripting Guys article with explanation and examples.
...but there are so many better/easier ways to manage security, from CACLS/XCACLS to ADSecurity.dll and more.
精彩评论