Posts tagged ‘Active Directory’

A new version of DnsShell has been released, this release improves Get-ADDnsRecord and adds Get-ADDnsPartition and Get-ADDnsZone.

The updated release is available on MSDN as version 0.2.0.

code.msdn.microsoft.com/dnsshell

Basic help is available for each of the new CmdLets.

Exactly as the title says, an example of how to change the Primary Group for a set of users returned by a search with PowerShell.
Continue reading ‘Changing the Primary Group with 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’ »

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’ »

A script to enumerate trust information from an Active Directory forest.
Continue reading ‘Listing Trusts’ »

Microsoft DNS is able to store records in Active Directory when running on a Domain Controller. The information is stored in a Binary Large Object (BLOB) called DNSRecord. No official maps for that attribute appear to have been published. The information below is a result of reverse engineering the contents of the attribute.

Michael Smith has a very pretty PowerShell script which uses the structures below, and a few more, to convert the DnsRecord attribute into a human readable format on his blog, Michael’s meanderings….

Update 02/02/2010: In December 2009, Microsoft released a (not entirely accurate) protocol specification including details of dnsRecord and dnsProperty: MS-DNSP.pdf
Continue reading ‘Mapping the DNSRecord attribute’ »

Using PowerShell to create a version of Get-MailboxStatistics for Exchange 2003.
Continue reading ‘Get-MailboxStatistics for Exchange 2003’ »

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.
Continue reading ‘Setting desktop wallpaper’ »

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.
Continue reading ‘Returning the OU for an object in AD’ »