Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NTFS perms 1

Status
Not open for further replies.

skimtat

MIS
Nov 9, 2000
3
US
So I have written an VBScript to inventory my servers. It goes out and tells me if all my reg keys are standard and a bunch of other stuff. What I really want to do is have the script read NTFS perms and return them to me. Is there any way to do this within VBS. The only way I have attempted was to pipe calcs.exe to a file and read it YUCK! Oh well any help would be Great. TIA
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top