Posts tagged ‘Active Directory’
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 have been looking for Get-MailboxStatistics for Exchange 2003. I have a PowerShell version of this script for exactly that reason here.
Continue reading ‘Exchange 2003: Returning mailbox sizes’ »
Posted by Chris on October 28, 2008 at 12:13 pm under Active Directory, Exchange, VbScript.
Tags: Active Directory, Exchange, information stores, vbs, VbScript
17 Comments.
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 displays whether or not the account is present in the access control list.
Continue reading ‘Finding a user in Exchange mailbox security’ »
Posted by Chris on October 28, 2008 at 11:33 am under Active Directory, Exchange, VbScript.
Tags: acl, Active Directory, Exchange, permissions, securitydescriptor, vbs, VbScript
Comment on this post.
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 connects to the subnets container and loops through the contents returning the network address and mask length in a Dictionary object.
Continue reading ‘VbScript: GetADSubnets’ »
Posted by Chris on October 25, 2008 at 11:46 am under Active Directory, VbScript.
Tags: Active Directory, subnet, vbs, VbScript
Comment on this post.
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 delimited text file.
Continue reading ‘Auditing userAccountControl with VbScript’ »
Posted by Chris on October 22, 2008 at 8:23 pm under Active Directory, VbScript.
Tags: Active Directory, userAccountControl, vbs, VbScript
Comment on this post.
I recently went through another migration. One of the post migration tasks was to fix permission to update lists. The “ManagedBy” attribute had been copied across, but not the security descriptor from the group.
This show PowerShell script can be run from the Exchange Management Shell to grab the value from ManagedBy and write it back to the security descriptor. It’s a little messy, especially as there’s no way to check on the AD level if the box is ticked except by the security descriptor.
Continue reading ‘Exchange 2007 & Manager Can Update Membership List’ »
Posted by Chris on October 22, 2008 at 12:29 pm under Active Directory, Exchange, PowerShell.
Tags: Active Directory, Exchange 2007, managedby, PowerShell
Comment on this post.
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’ »
Posted by Chris on October 21, 2008 at 4:00 pm under Active Directory, C# .NET, PowerShell, VB .NET, VbScript.
Tags: Active Directory, C# .NET, list domains, PowerShell, VB .NET, vbs, VbScript
7 Comments.
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’ »
Posted by Chris on October 21, 2008 at 2:49 pm under Active Directory, VbScript.
Tags: Active Directory, groups, ismember, member, memberOf, nested groups, vbs, VbScript
4 Comments.
This post explains how to identify and report on stale records in a dynamically updated Microsoft DNS zone.
Continue reading ‘Microsoft DNS & stale records’ »
Posted by Chris on October 10, 2008 at 12:18 pm under Microsoft DNS, PowerShell, VbScript.
Tags: Active Directory, Microsoft DNS, PowerShell, reporting, Stale Records, vbs, VbScript, Windows 2003, wmi
Comment on this post.
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’ »
Posted by Chris on October 6, 2008 at 8:44 pm under Active Directory, VbScript.
Tags: Active Directory, Global Catalog, Schema, vbs, VbScript
Comment on this post.
Converts an NT user name into a Distinguished Name (object path) in Active Directory using the NameTranslate interface.
Continue reading ‘VbScript: GetObjectDN’ »
Posted by Chris on October 6, 2008 at 7:57 pm under Active Directory, VbScript.
Tags: Active Directory, NameTranslate, vbs, VbScript
Comment on this post.