Active Directory


Use -SearchBase with Get-ADComputer for faster results

Using -SeachBase with PowerShell’s Get-ADComputer cmdlet gives faster results when querying Active Directory Domain Services (AD DS) with PowerShell. You can use this for your own advantage, here is a little example to speed up AD DS queries.

Windows Server

List all SPNs used in your Active Directory

A service principal name (SPN) is a unique identifier of a service instance. Listing duplicate SPNs is fairly easy, but how do you find out which SPNs are used for which users, computers and services? Start troubleshooting SPNs here and learn how to use setspn.exe to list all SPNs used in your Active Directory.