Auditing userAccountControl with VbScript
This VbScript searches the current domain for all users with “User cannot change password”, “Password never expires”, or “Trusted for delegation” set, the results of the search are written to a tab...
View ArticleModifying DNS records with WMI
Using WMI it is possible to modify any existing record hosted on a Microsoft DNS Server. The method used varies slightly depending on which record type we want to change. References for each version of...
View ArticleVbScript: GetADSubnets
The VbScript below demonstrates how subnet information might be retrieved from Active Directory. It is possible to use a search using to return this information (for objectClass=subnet). This method...
View ArticleFinding a user in Exchange mailbox security
A script to read the mailbox security descriptor from Active Directory with the intention of finding a particular user or security principal. It will not display the security descriptor, it simply...
View ArticleExchange 2003: Returning mailbox sizes
This script uses WMI and Active Directory queries to return information about mailbox sizes from Exchange and the limits set in Active Directory. Download GetMailboxStatistics.vbs A number of people...
View ArticleReturning the OU for an object in AD
Occasionally it can be useful to know how to retrieve the parent, or OU holding an object, from Active Directory. Perhaps the easiest way to do this is using the Parent property. VbScript: Getting the...
View ArticleSetting desktop wallpaper
Group Policy will, by default, only set the desktop wallpaper using Active Desktop. It is also possible to set the wallpaper using the logon script, or using a custom Group Policy template. Custom...
View ArticleReading NTFS and Share security with VbScript
NTFS (File System) and Share security can be enumerated using the Win32_LogicalFileSecuritySetting and Win32_LogicalShareSecuritySetting WMI classes. This post demonstrates how to use each class to...
View ArticleListing Trusts
A script to enumerate trust information from an Active Directory forest. Const ADS_SCOPE_SUBTREE = 2 ' Trust Type ' http://msdn.microsoft.com/en-us/library/cc223771(PROT.10).aspx Dim objTrustTypes Set...
View ArticleBuilding LDAP filters for date based attributes
Active Directory contains a number of attributes which hold date information. This article shows how to generate LDAP Filters for these attributes in both VbScript and PowerShell. Date attributes This...
View Article