ODBC MOF
Main Menu
>
Tools
>
Other Tools
ODBC MOF
MOF that will extend SCCM To read ODBC System DSN
Download
Documentation
------------------- Configuration.MOF------------------------------- #pragma namespace ("\\\\.\\root\\cimv2") [ dynamic, provider("RegProv"), ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI") ] class ODBC_Connections { [Key] string DSN; [PropertyContext("Database")] string Database; [PropertyContext("Description")] string Description; [PropertyContext("Server")] string Server; }; ------------------------------------------------------------------------ ------------------- sms_def.MOF------------------------------- //************************************************************************** //* Class: Registry for ODBC //* Derived from: (nothing) //* //* Key = Name, Version //* //* This registry class provides information on ODBC information for the machine //* //************************************************************************** [SMS_Report (TRUE), SMS_Group_Name ("ODBC System DSN"), SMS_Class_ID ("OAI|ODBC System DSN|1.0")] class ODBC_Connections : SMS_Class_Template { [SMS_Report(TRUE),Key] string DSN; [SMS_Report(TRUE)] string Database; [SMS_Report(TRUE)] string Description; [SMS_Report(TRUE)] string Server; }; ------------------------------------------------------------------------