ADSI. The ADSI software development kit (SDK) includes a resource kit that contains a few COM components that provide additional functionality that some people might consider missing from the core ADSI distribution. One of those components, ADsSecurity.dll, lets you manage NTFS permissions. To obtain and install the ADsSecurity.dll component, follow these steps:
Go to
downloads/other/adsi25/sdk.asp, and follow the download instructions for the Microsoft Active Directory Services Interfaces 2.5 SDK (sdk.zip).
Unzip the SDK into a new directory called C:\adsisdk.
Move (or copy) ADsSecurity.dll from the C:\adsisdk\resourcekit directory to the C:\winnt\system32 directory or a common component directory.
Move ADsSecurity.dll to the C:\winnt\system32 directory because the standard ADSI components reside there. However, if you don't want to pollute the system32 directory, you can move the DLL to a common component directory (e.g. C:\components) instead.
Change to the directory that contains ADsSecurity.dll, and issue the following command to install (i.e., register) the DLL:
C:\> regsvr32 ADsSecurity.dll
You'll receive a message specifying that you successfully registered the DLL. You can now use ADsSecurity.dll to manage NTFS permissions.
The SDK documentation includes instructions for using ADsSecurity. The SDK also includes Visual Basic (VB) and VBScript code examples in the C:\adsisdk\resourcekit\adssecurity\file subdirectory.
---Found this on
If my post was helpful, please Mark it below. Thanks! - Al