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.
Posted by Chris on April 14, 2010 at 1:09 pm under Active Directory, DnsShell, Microsoft DNS, PowerShell.
Tags: Active Directory, Microsoft DNS, PowerShell
Comment on this post.
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’ »
Posted by Chris on January 22, 2010 at 2:48 pm under Active Directory, PowerShell.
Tags: Active Directory, DirectorySearcher, LDAP, memberOf, PowerShell
2 Comments.
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’ »
Posted by Chris on October 2, 2009 at 8:33 am under Active Directory, PowerShell.
Tags: acl, Active Directory, PowerShell
Comment on this post.
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’ »
Posted by Chris on August 27, 2009 at 3:28 pm under Active Directory, Exchange, PowerShell.
Tags: Active Directory, Exchange, PowerShell
Comment on this post.
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’ »
Posted by Chris on August 27, 2009 at 10:33 am under Active Directory, PowerShell, VbScript.
Tags: Active Directory, LDAP, PowerShell, VbScript
1 Comment.
A script to enumerate trust information from an Active Directory forest.
Continue reading ‘Listing Trusts’ »
Posted by Chris on August 27, 2009 at 10:01 am under Active Directory, VbScript.
Tags: Active Directory, Trust, VbScript
Comment on this post.
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’ »
Posted by Chris on June 18, 2009 at 10:44 am under Active Directory, Microsoft DNS.
Tags: Active Directory, dnsRecord, Microsoft DNS
1 Comment.
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’ »
Posted by Chris on December 23, 2008 at 1:27 pm under Active Directory, VbScript.
Tags: Active Directory, group policy, vbs, VbScript
Comment on this post.
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’ »
Posted by Chris on December 8, 2008 at 11:42 am under Active Directory, PowerShell, VbScript.
Tags: Active Directory, PowerShell, vbs, VbScript
Comment on this post.