Tag Archives: ad

List All Domain Controllers and roles with PowerShell

New job, new infrastructure, and I needed a way to quickly find out what Active Directory Domain Controllers were present, where they were located, and what roles and functions they all performed. So I wrote this simple script to do … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , , , , , , | 1 Comment

PowerShell: Add users to Active Directory

Quickie script to add a load of users to Active Directory. This was to generate a set of test users, so the account settings are rather scarce. You have to convert the password text string┬áto data type System.Security.SecureString, which I’m … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , , , , , | Leave a comment

PowerShell: Get AD attributes

A while back I posted a script to monitor Active Directory LDAP response times. As part of this I had a chunk of code that not only did an LDAP lookup, but also pulled all the AD attributes into a … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , | Leave a comment

PowerShell LDAP response time monitor

I recently had some issues with a system not getting very response times to LDAP queries sent to various Active Directory domain controllers. These were resolved via a combination of Windows Server 2003 Server Performance Advisor and the built in, … Continue reading

Rate this:

Posted in Performance, PowerShell, Windows | Tagged , , , , , , , , , , , , , | 3 Comments