A PowerShell function that allows directory recursion to a specified depth.
Continue reading ‘Limit recursion depth with Get-ChildItem’ »
Archive for the ‘PowerShell’ Category
A function to retrieve IIS log settings from a local or remote IIS 6 server. Written to be compatible with PowerShell 1.0.
Continue reading ‘PowerShell, IIS and log settings’ »
I bumped into a requirement to run a SysLog relay on one of my Windows 2008 R2 systems. After poking around on Google, and after getting a bit bored with the third-party offerings, I threw together a simple server of my own.
Continue reading ‘SysLog in PowerShell’ »
The goal of this PowerShell function is to create a report of permissions assigned to objects in Active Directory in much the same way as DsRevoke.
Continue reading ‘Get-DsAcl’ »
This function reads delivery restrictions from objects in Active Directory. By default it looks at Groups. As the same information can be returned using Get-DistributionGroup or Get-Mailbox using Exchange 2007; this function is aimed at Exchange 2003.
Continue reading ‘Accept or reject messages from’ »
A function to merge or join two objects. For example, to merge an entry from “Get-MailboxStatistics” with information about storage limits set on the account in Active Directory. This small function demonstrates how the Property members of two objects might be merged. Common properties on the additional object are discarded.
Continue reading ‘Merge-Object’ »
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.
Continue reading ‘Building LDAP filters for date based attributes’ »
The cmdlet Get-ACL is very capable when it comes to NTFS permissions, but it cannot read share permissions. This function makes an effort to provide a simple way to return share security (and other information) from a share.
Continue reading ‘Reading share security with PowerShell’ »
Using PowerShell to create a version of Get-MailboxStatistics for Exchange 2003.
Continue reading ‘Get-MailboxStatistics for Exchange 2003’ »
DNS administration in PowerShell, including tasks like creating zones and adding Host (A) records, can be performed using the WMI interface. Full documentation for the interface is available from Microsoft in the DNS WMI Provider Reference.
I have released a PowerShell 2.0 module using the WMI provider here.
Continue reading ‘Administering Microsoft DNS in PowerShell’ »