This script uses WMI to enumerate each access control entry in an NTFS access control list, looking for explicit entries, that is, entries that are not inherited.
Continue reading ‘NTFS, WMI, VbScript & listing explicit rights’ »
Posts tagged ‘VbScript’
I wrote this script quite a few years ago to reduce the size of IIS log files by removing log entries for trivial requests (based on file extension for the request).
Continue reading ‘Log file scrubber for IIS’ »
This script will create contacts in Active Directory based on a formatted CSV file. It was written to allow automatic synchronisation of contacts using a CSV file as the source.
Continue reading ‘Import contacts from a csv file using VbScript’ »
These snippets of code shows how to search Active Directory using LDAP to return all domains in the current Forest (based on current authentication).
Continue reading ‘Listing all domains in a forest’ »
When it comes to testing for group membership in Active Directory with VbScript there are a lot of different options. The following examples intend to demonstrate the basic to the complex.
Continue reading ‘Active Directory, VbScript & testing group membership’ »
At times it can be very convenient to be able to work with IP Addresses and subnetting in VbScript. This collection of functions handles subnet math in VbScript.
A PowerShell version of these functions can be found here.
Continue reading ‘IPv4 subnet math with VbScript’ »
This post explains how to identify and report on stale records in a dynamically updated Microsoft DNS zone.
Continue reading ‘Microsoft DNS & stale records’ »
This small script will list all attributes listed in the Active Directory Schema which have been set to replicate into the Global Catalog. Inclusion in the Global Catalog is defined by setting the attribute “isMemberOfPartialAttributeSet” to True.
Continue reading ‘VbScript: isMemberOfPartialAttributeSet’ »
Converts an NT user name into a Distinguished Name (object path) in Active Directory using the NameTranslate interface.
Continue reading ‘VbScript: GetObjectDN’ »
A VbScript function to retrieve all Exchange Information Stores from Active Directory, returning the results as a Dictionary object containing the store name and store distinguishedName.
Continue reading ‘VbScript: GetStores’ »