PowerShell for Windows Admins:

Active Directory


November 28, 2012  10:44 AM

Clearing all telephone information for an AD account



Posted by: Richard Siddaway
Active Directory, PowerShell

I had a question through the blog asking how you could clear the telephone, pager and ipphone information from a user account.

Telephone information in AD appears on the General tab telephone and Other..   And on the telephone tab there is home, mobile, pager, fax and ipphone...

September 17, 2012  2:24 PM

Change user attribute based on group membership



Posted by: Richard Siddaway
Active Directory, PowerShell

Want to change an attribute on all members of an Active Directory group.  Then try this

Get-ADGroupMember -Identity Legal |            ...


June 2, 2012  6:34 AM

Using Windows 2012 Active Directory module in a Windows 2008 R2 domain



Posted by: Richard Siddaway
Active Directory, PowerShell 3, Windows 2008 R2, Windows Server 8

A question came up on Tuesdays UK PowerShell Group session about using the Windows 2012 Active Directory module. The recording links are here

Bookmark and Share     0 Comments     RSS Feed     Email a friend


March 30, 2012  8:49 AM

PowerShell in Practice offer today only



Posted by: Richard Siddaway
Active Directory, Books, Hyper-V, Network, Operating System, PowerShell, Processor, Registry, WMI

Manning have PowerShell in Practice on a half price offer today. Go to www.manning.com and use code dotd0330cc when ordering


March 18, 2012  2:30 PM

Get Global Catalog from DNS



Posted by: Richard Siddaway
Active Directory, DNS, PowerShell, WMI

One option for finding global catalog servers is often overlooked – DNS.  In an AD environment DNS stores the SRV records that advertise the services domain controllers can deliver

$dnsserver = 			


March 15, 2012  4:25 PM

Active Directory WMI provider



Posted by: Richard Siddaway
Active Directory, PowerShell, WMI

I stumbled on this namespace on my domain controller - root\directory\ldap – which appears to be a WMI provider for AD. From the information at

Bookmark and Share     0 Comments     RSS Feed     Email a friend


February 18, 2012  4:58 AM

LDAP filter issues



Posted by: Richard Siddaway
Active Directory, PowerShell

I have been using LDAP filters a lot recently. One thing that can cause subtle errors that are difficult to track down are LDAP filters.

As an example consider this code which discovers all objects with the creatorSID attribute set and then resolves that SID to discover the user who...


February 12, 2012  4:31 AM

Domain Controller Service Health–revisited



Posted by: Richard Siddaway
Active Directory, PowerShell, WMI

A bit more digging as a follow up to the previous post shows that the NTDS service is shown when PowerShell is run with elevated privileges i.e. Run as Administrator. That means we want to be able to test is PowerShell is running in that mode

The test-dcservicehealth function becomes

...


February 11, 2012  2:36 PM

Domain Controller Service Health



Posted by: Richard Siddaway
Active Directory, PowerShell v2, WMI

The correct functioning of our AD domains depends on the services that are running on our domain controllers

A quick test for the services that could affect AD

function test-dcServiceHealth 			


February 11, 2012  5:09 AM

Tools for administering Active Directory



Posted by: Richard Siddaway
Active Directory, PowerShell

It was pointed out in a comment that in my series of posts on administering Active Directory (started with

Bookmark and Share     0 Comments     RSS Feed     Email a friend