Posted by Chris on February 19, 2009 in VbScript | Tags :acl, ntfs, permissions, securitydescriptor, vbs, VbScript, wmi
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 read the security descriptors.
more >>
Posted by Chris on December 23, 2008 in Active Directory, VbScript | Tags :Active Directory, group policy, vbs, VbScript
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.
more >>
Posted by Chris on December 8, 2008 in Active Directory, PowerShell, VbScript | Tags :Active Directory, PowerShell, vbs, VbScript
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.
more >>
Posted by Chris on October 28, 2008 in Active Directory, Exchange, VbScript | Tags :Active Directory, Exchange, information stores, vbs, VbScript
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.
more >>
Posted by Chris on October 28, 2008 in Active Directory, Exchange, VbScript | Tags :acl, Active Directory, Exchange, permissions, securitydescriptor, vbs, VbScript
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.
more >>
Posted by Chris on October 25, 2008 in Active Directory, VbScript | Tags :Active Directory, subnet, vbs, VbScript
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.
more >>
Posted by Chris on October 23, 2008 in Microsoft DNS, PowerShell, VbScript | Tags :Microsoft DNS, PowerShell, vbs, VbScript, 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.
more >>
Posted by Chris on October 22, 2008 in Active Directory, VbScript | Tags :Active Directory, userAccountControl, vbs, 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 delimited text file.
more >>
Posted by Chris on October 22, 2008 in VbScript | Tags :acl, ntfs, permissions, securitydescriptor, vbs, VbScript, wmi
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.
more >>
Posted by Chris on October 22, 2008 in IIS, VbScript | Tags :IIS, log files, vbs, 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).
more >>