How To Use ADSI to Set Automatic Inheritance of File/Folder Permissions (266461)
The information in this article applies to:
- Microsoft Active Directory Services Interface, System Component, when used with:
- the operating system: Microsoft Windows 2000
This article was previously published under Q266461 SUMMARY
File permissions that are set on files and folders using Active Directory Services Interface (ADSI) and the ADSI resource kit utility, ADsSecurity.DLL, do not automatically propagate down the subtree to the existing folders and files.
To accomplish automatic propagation of inheritable Access Control Entries (ACEs) using ADSI, you need to enumerate existing subfolders and files yourself and apply the inheritable ACEs. Alternatively, you can call the SetSecurityInfo or SetNamedSecurityInfo function directly instead of using ADSI.
REFERENCES
For operating system specific ADSI run-time downloads and additional information, see the following Microsoft Web site:
The ADsSecurity.dll file is available as a resource kit object at the Platform SDK documentation in the ADSI SDK.
For additional information on using ADSI, see the following Web site:
For more information on "Modifying an Object's ACL's" at the following Microsoft Developer Network (MSDN) Web site:
For more information on Windows Scripting Host, see the following article:
188135 Description of Windows Script Host (WSH)
Modification Type: | Major | Last Reviewed: | 3/17/2006 |
---|
Keywords: | kbhowto kbMsg KB266461 kbAudDeveloper |
---|
|