Find Obsolete AD Computer Accounts

The below short bit of PowerShell is helpful to find computers that have not communicated to an Active Directory domain controller in a definable number of days. Generally if a computer is no longer talking to the domain it would …

Read more

PowerShell Find Empty AD Groups

Powershell

Pre-requisites Before you can use the Active Directory Cmdlets you will either need the to install the RSAT tools or run the below PowerShell on on Domain Controller. You can read more about  Active Directory Administration with Windows PowerShell here …

Read more

PHP – LDAP Query AD Users

PHP LDAP Banner

Overview The below PHP script is an example of how to connect to Active Directory via LDAP and retrieve a list of users’ details. If instead, you are looking to retrieve information on computer accounts in the domain. Take a …

Read more

VBS Script Find Empty AD Groups

The below is a great little VBS script to find all empty Active Directory groups in the current domain. Usage The empty AD groups will be listed in your command prompt window. The Script Alternative PowerShell Method If you would …

Read more