I just finished moving this blog into Azure and updating to the latest version of BlogEngine.NET. Some of the images from older posts got lost in the migration, and I am working to restore them.
I recently discovered a very convenient way to search Active Directory using the [adsisearcher] type accelerator. Here’s a simple example searching for a user based on their first and last names:
$searcher = [adsisearcher]""
$searcher.Filter = "(&(givenName=Pete)(sn=Peterson))"
$user = [adsi]($search.FindOne().Path)