I’ve been writing code over the last day or so that manages a Windows Server 2008 R2 DNS server via the DNS WMI classes. Since they’re not very developer-friendly in C# (a little friendlier in a dynamic REPL like PowerShell with tab completion), I was trying to find out if someone else had already wrapped the WMI calls into a little library that would be strongly typed and allow at least most of the common cases (creating and deleting zones, creating and deleting records in a zone). It doesn’t have to be third-party, it can be something from Microsoft (maybe there’s something on the box I’m missing?)
Thanks!!
I don’t now for a wrapper for these classes, but exist several tools which can help you to create code to interact with the WMI.
WMI Delphi Code Creatorallow you to generate C#, C++ orObject pascal code to access the WMI.
tool generates Strongly typed class for a given WMI class.