Roger Zander at myITforum.com

Creating Data Discovery Records (DDR) from .NET

Version 1.1.1.11 of the SMSCliCtr.automation library does include new functions to create a Data Discovery Record (DDR) File from .NET (no access to SMSRsGen.dll required).

Example (C#):

DDRFile oDDRFile = new DDRFile("System", "CustomDiscovery", "C00");
oDDRFile.DDRAddString("Name", "MyComputer", 64,
  DDRFile.DDRPropertyFlagsEnum.ADDPROP_KEY |
  DDRFile.DDRPropertyFlagsEnum.ADDPROP_NAME);
oDDRFile.DDRWrite("c:\file.ddr");

The complete source-code (GPL License) can be found in the SVN Repository of the SCCM Client Center Project.

Posted: Nov 16 2009, 11:50 AM by rzander | with no comments
Filed under: , ,

Comments

No Comments