How to use ADsSecurity.dll to add an access control entry to an NTFS folder (279682)
The information in this article applies to:
- Microsoft Active Directory Service Interfaces 2.5
- Microsoft Windows Script Host 2.0
- Microsoft Active Directory Services Interface, System Component
- Microsoft Active Directory Services Interface, Microsoft Active Directory Client
This article was previously published under Q279682 SUMMARY
This article shows how you can use the IADsSecurityDescriptor interface that is supported by the ADsSecurity.dll file to add access control entries (ACEs) to an NTFS file system folder's access control list (ACL).
In order for the sample code that is provided in this article to function properly, the latest version of the ADsSecurity.dll file must be registered on the system that is executing the script (the client). The ADsSecurity.dll file is part of the Active Directory Service Interfaces (ADSI) 2.5 Resource Kit. To download the Active Directory Service Interfaces 2.5 Resource Kit, visit the following Microsoft Web site:
Use Regsvr32 to register the ADsSecurity.dll file. If this DLL does not correctly register, Active Directory Service Interfaces is not installed. REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
269175 How To Use Visual C++ to Properly Order ACEs in an ACL
269159 How To Use Visual Basic and ADsSecurity.dll to Properly Order ACEs in an ACL
Modification Type: | Major | Last Reviewed: | 5/20/2005 |
---|
Keywords: | kbDSWADSI2003Swept kbhowto KB279682 kbAudDeveloper |
---|
|