Posted by Chris on April 14, 2010 in Active Directory, DnsShell, Microsoft DNS, PowerShell | Tags :Active Directory, Microsoft DNS, PowerShell
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.
Posted by Chris on January 22, 2010 in Active Directory, PowerShell | Tags :Active Directory, DirectorySearcher, LDAP, memberOf, PowerShell
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.
more >>
Posted by Chris on October 2, 2009 in Active Directory, PowerShell | Tags :acl, Active Directory, 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.
more >>
Posted by Chris on August 27, 2009 in Active Directory, Exchange, PowerShell | Tags :Active Directory, Exchange, PowerShell
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.
more >>
Posted by Chris on August 27, 2009 in Active Directory, PowerShell, VbScript | Tags :Active Directory, LDAP, PowerShell, VbScript
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.
more >>
Posted by Chris on August 27, 2009 in Active Directory, VbScript | Tags :Active Directory, Trust, VbScript
A script to enumerate trust information from an Active Directory forest.
more >>
Posted by Chris on June 18, 2009 in Active Directory, Microsoft DNS | Tags :Active Directory, dnsRecord, Microsoft DNS
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
more >>
Posted by Chris on January 22, 2009 in Active Directory, Exchange, PowerShell | Tags :Active Directory, DirectorySearcher, Exchange, PowerShell, wmi
Using PowerShell to create a version of Get-MailboxStatistics for Exchange 2003.
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 >>