I wanted to write a post about the project I’ve been working on since circa December 2015. It’s approximately 1200 lines of code and 18 commands – all varying in intended design/function. The assembly is meant to be imported into your Exchange Management Shell (EMS) via importing the module: Import-Module .\EXODSnapIn.dll -Verbose The intended audience…
Year: 2016
C# + AD: Dump COM and Use System.DirectoryServices.Protocols with LINQ to Query AD
A while back, I posted about using ADSI COM to get the data that you wanted. I want to show you how you can do this 10 times faster, using System.DirectoryServices.Protocols and LINQ. Class for the actual AD query being performed: /// <summary> /// Initializes a new instance of the <see cref=”LdapSearcher”/> class. /// </summary>…
Debugging: When Recursive NDRs Bring the FSC to It’s Knees And Causes Queuing
A while back (circa July 2015), we had alerting for queuing for a Dedicated customer. When we went and looked, the messages were just sitting in the Submission queue. We dumped the EdgeTransport process and I cracked it open. When I looked at the dump, only 4 threads were at or above 30 frames and…
PowerShell + C#: Accessing the Current Runspace And Adding a Snap-In
I’ve been coding an assembly for import into the Exchange Management Shell (EMS) in C# for some time. One of the problems that I ran into was how to load the Support assembly, since it’s not imported into the RunSpace by default. After a while of testing/trying/failing and repeat ad nauseam, I found the answer…