Archive for October, 2008
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.
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.
Continue reading ‘Modifying DNS records with WMI’ »
Posted by Chris on October 23, 2008 at 12:40 pm under Microsoft DNS, PowerShell, VbScript.
Tags: Microsoft DNS, PowerShell, vbs, VbScript, wmi
2 Comments.
One of the most common problems with outbound mail is configuration of the SMTP service name and DNS records. This post briefly covers the requirements for running a public SMTP service, it does not matter if that server is Exchange, or Sendmail, or PostFix, the same set of rules apply.
The outbound rules do not apply when using a Smart Host to send mail. The inbound rules do not apply if receiving mail through a third-party (such as an anti-spam service).
Continue reading ‘Requirements for hosting SMTP servers’ »
Posted by Chris on October 23, 2008 at 10:51 am under Exchange.
Tags: Exchange, hosting, smtp
Comment on this post.
Taking advantage of the fact that DNS will always respond with an authoritative answer if it has one allows exceptions for single hosts. In essence, using DNS as a centralised hosts file.
Continue reading ‘Zones for single hosts with Microsoft DNS’ »
Posted by Chris on October 23, 2008 at 10:18 am under Microsoft DNS.
Tags: host exceptions, Microsoft DNS
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.
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’ »
Posted by Chris on October 22, 2008 at 4:04 pm under VbScript.
Tags: acl, ntfs, permissions, securitydescriptor, vbs, VbScript, wmi
Comment on this post.
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’ »
Posted by Chris on October 22, 2008 at 3:29 pm under IIS, VbScript.
Tags: IIS, log files, vbs, VbScript
Comment on this post.
A short script to list explicit rights assigned to a directory structure. It uses the recursive option of ls (an Alias for Get-ChildItem) to drop down through the directory structure.
Continue reading ‘NTFS, PowerShell, Get-ACL & listing explicit rights’ »
Posted by Chris on October 22, 2008 at 12:50 pm under PowerShell.
Tags: acl, ntfs, permissions, PowerShell, securitydescriptor
1 Comment.