Showing posts with label MOF EDIT. Show all posts
Showing posts with label MOF EDIT. Show all posts

Monday, January 31, 2011

AutoCAD Mof File for all versions

:::::::::::::::SMS_def.mof file:::::::::::::::

#pragma namespace ("\\\\.\\root\\cimv2\\sms")

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 14"),
SMS_Class_ID ("CUSTOM|AUTOCAD_14|1.0") ]
class Win32Reg_AutoCAD_14 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2000"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2000|1.0") ]
class Win32Reg_AutoCAD_2000 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2000i"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2000i|1.0") ]
class Win32Reg_AutoCAD_2000i : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2002"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2002|1.0") ]
class Win32Reg_AutoCAD_2002 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2004"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2004|1.0") ]
class Win32Reg_AutoCAD_2004 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2005"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2005|1.0") ]
class Win32Reg_AutoCAD_2005 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2006"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2006|1.0") ]
class Win32Reg_AutoCAD_2006 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2007"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2007|1.0") ]
class Win32Reg_AutoCAD_2007 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2008"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2008|1.0") ]
class Win32Reg_AutoCAD_2008 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2009"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2009|1.0") ]
class Win32Reg_AutoCAD_2009 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2010"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2010|1.0") ]
class Win32Reg_AutoCAD_2010 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD 2011"),
SMS_Class_ID ("CUSTOM|AUTOCAD_2011|1.0") ]
class Win32Reg_AutoCAD_2011 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[SMS_Report(TRUE),SMS_Group_Name("AutoCAD 2012"),SMS_Class_ID("Custom|Autocad_2012|1.0"),
SMS_Context_1("__ProviderArchitecture=32|uint32"),
SMS_Context_2("__RequiredArchitecture=true|boolean")]
Class Win32Reg_Autocad_2012: SMS_Class_Template
{
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(TRUE)] String ProductName;
[SMS_Report(TRUE)] String Release;
[SMS_Report(TRUE)] String SerialNumber;
[SMS_Report(TRUE)] String StandaloneNetworkType;
};

[SMS_Report(TRUE),SMS_Group_Name("AutoCAD 2012"),SMS_Class_ID("Custom|Autocad_2012|1.0"),
SMS_Context_1("__ProviderArchitecture=64|uint32"),
SMS_Context_2("__RequiredArchitecture=true|boolean")]
Class Win32Reg_Autocad_2012_64 : SMS_Class_Template
{
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(TRUE)] String ProductName;
[SMS_Report(TRUE)] String Release;
[SMS_Report(TRUE)] String SerialNumber;
[SMS_Report(TRUE)] String StandaloneNetworkType;
};

//***************************************
//* AutoCAD LT Starts Here
//***************************************

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 97"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_97|1.0") ]
class Win32Reg_AutoCAD_LT_97 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2000"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2000|1.0") ]
class Win32Reg_AutoCAD_LT_2000 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2000i"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2000i|1.0") ]
class Win32Reg_AutoCAD_LT_2000i : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2002"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2002|1.0") ]
class Win32Reg_AutoCAD_LT_2002 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2004"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2004|1.0") ]
class Win32Reg_AutoCAD_LT_2004 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2005"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2005|1.0") ]
class Win32Reg_AutoCAD_LT_2005 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2006"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2006|1.0") ]
class Win32Reg_AutoCAD_LT_2006 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2007"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2007|1.0") ]
class Win32Reg_AutoCAD_LT_2007 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2008"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2008|1.0") ]
class Win32Reg_AutoCAD_LT_2008 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2009"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2009|1.0") ]
class Win32Reg_AutoCAD_LT_2009 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2010"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2010|1.0") ]
class Win32Reg_AutoCAD_LT_2010 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("AutoCAD LT 2011"),
SMS_Class_ID ("CUSTOM|AUTOCAD_LT_2011|1.0") ]
class Win32Reg_AutoCAD_LT_2011 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

//***************************************
//* Inventor Starts Here
//***************************************

[ SMS_Report (TRUE),
SMS_Group_Name ("Inventor"),
SMS_Class_ID ("CUSTOM|AUTODESK_INVENTOR|1.0") ]
class Win32Reg_Autodesk_Inventor : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

//***************************************
//* 3dsmax Starts Here
//***************************************

[ SMS_Report (TRUE),
SMS_Group_Name ("3dsmax 9"),
SMS_Class_ID ("CUSTOM|3dsmax_9|1.0") ]
class Win32Reg_3dsmax_9 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("3dsmax 13"),
SMS_Class_ID ("CUSTOM|3dsmax_13|1.0") ]
class Win32Reg_3dsmax_13 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

[ SMS_Report (TRUE),
SMS_Group_Name ("3dsmax 14"),
SMS_Class_ID ("CUSTOM|3dsmax_14|1.0") ]
class Win32Reg_3dsmax_14 : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Release;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string StandaloneNetworkType;
};

//********************
//Algor Starts here
//**********************

[ SMS_Report (TRUE),
SMS_Group_Name ("Algor"),
SMS_Class_ID ("CUSTOM|Algor_All|1.0") ]
class Win32Reg_Algor : SMS_Class_Template
{
    [SMS_Report (TRUE), Key ] string KeyName;
    [SMS_Report (TRUE)] string ProductName;
    [SMS_Report (TRUE)] string Version;
    [SMS_Report (TRUE)] string SerialNumber;
    [SMS_Report (TRUE)] string InstallationType;
};

:::::Configuration.mof file:::::

 

#pragma namespace("\\\\.\\root\\cimv2")

//***************************************
//* AutoCAD Starts Here
//***************************************

// AutoCAD 14
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R14.0")
]

class Win32Reg_AutoCAD_14
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

// AutoCAD 2000
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R15.0")
]

class Win32Reg_AutoCAD_2000
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

// AutoCAD 2000i
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R15.1")
]

class Win32Reg_AutoCAD_2000i
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

// AutoCAD (including Mechanical) 2002
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R15.2")
]

class Win32Reg_AutoCAD_2002
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Mechanical) 2004
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R16.0")
]

class Win32Reg_AutoCAD_2004
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2005
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R16.1")
]

class Win32Reg_AutoCAD_2005
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2006
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R16.2")
]

class Win32Reg_AutoCAD_2006
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2007
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R17.0")
]

class Win32Reg_AutoCAD_2007
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2008
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R17.1")
]

class Win32Reg_AutoCAD_2008
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2009
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R17.2")
]

class Win32Reg_AutoCAD_2009
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2010
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R18.0")
]

class Win32Reg_AutoCAD_2010
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2011
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R18.1")
]

class Win32Reg_AutoCAD_2011
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD (including Electrical & Mechanical) 2012

[dynamic, provider("RegProv"), ClassContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R18.2")]
Class Win32Reg_Autocad_2012
{
[key] string KeyName;
[PropertyContext("ProductName")] String ProductName;
[PropertyContext("Release")] String Release;
[PropertyContext("SerialNumber")] String SerialNumber;
[PropertyContext("StandaloneNetworkType")] String StandaloneNetworkType;
};

#pragma namespace ("\\\\.\\root\\cimv2")
//#pragma deleteclass("Win32Reg_Autocad_2012_64", NOFAIL)
[dynamic, provider("RegProv"), ClassContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R18.2")]
Class Win32Reg_Autocad_2012_64
{
[key] string KeyName;
[PropertyContext("ProductName")] String ProductName;
[PropertyContext("Release")] String Release;
[PropertyContext("SerialNumber")] String SerialNumber;
[PropertyContext("StandaloneNetworkType")] String StandaloneNetworkType;
};

//***************************************
//* AutoCAD LT Starts Here
//***************************************

//AutoCAD LT 97
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R4")
]

class Win32Reg_AutoCAD_LT_97
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2000
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R6")
]

class Win32Reg_AutoCAD_LT_2000
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2000i
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R7")
]

class Win32Reg_AutoCAD_LT_2000i
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2002
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R8")
]

class Win32Reg_AutoCAD_LT_2002
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2004
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R9")
]

class Win32Reg_AutoCAD_LT_2004
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2005
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R10")
]

class Win32Reg_AutoCAD_LT_2005
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2006
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R11")
]

class Win32Reg_AutoCAD_LT_2006
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2007
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R12")
]

class Win32Reg_AutoCAD_LT_2007
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2008
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R13")
]

class Win32Reg_AutoCAD_LT_2008
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2009
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R14")
]

class Win32Reg_AutoCAD_LT_2009
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2010
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R15")
]

class Win32Reg_AutoCAD_LT_2010
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//AutoCAD LT 2011
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD LT\\R16")
]

class Win32Reg_AutoCAD_LT_2011
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//***************************************
//* Inventor Starts Here
//***************************************

//All Inventor
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\Inventor")
]

class Win32Reg_Autodesk_Inventor
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//***************************************
//* 3dsmax Starts Here
//***************************************

//3dsmax 9
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\3dsmax\\9.0")
]

class Win32Reg_3dsmax_9
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//3dsmax 13
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\3dsmax\\13.0")
]

class Win32Reg_3dsmax_13
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//3dsmax 14
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\3dsmax\\14.0")
]

class Win32Reg_3dsmax_14
{
    [Key] string KeyName;
    [PropertyContext("ProductName")] string ProductName;
    [PropertyContext("Release")] string Release;
    [PropertyContext("SerialNumber")] string SerialNumber;
    [PropertyContext("StandaloneNetworkType")] string StandaloneNetworkType;
};

//***************************************
//* Algor Starts Here
//***************************************
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Algor, Inc.\\Algor Software\\Algor")
]

class Win32Reg_Algor
{
    [Key] string KeyName;
    [PropertyContext("Product Name")] string ProductName;
    [PropertyContext("Version")] string Version;
    [PropertyContext("Serial Number")] string SerialNumber;
    [PropertyContext("Installation Type")] string InstallationType;
};

//Total Auto Desk END******************************************************************************

Sunday, January 31, 2010

MOF Example - END - END

 

Client_UserProfileSize.MOF :-----

 

#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("Win32Reg_UserProfileSize",NOFAIL)
[ dynamic,
  provider("RegProv"),
  ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\DesktopOptimization\\UserProf")
]
class Win32Reg_UserProfileSize
{
    [key]
    string    Profile;
    [PropertyContext("Application Data")]       
        string    ApplicationData;
    [PropertyContext("Desktop")]       
        string    Desktop;
    [PropertyContext("My Documents")]       
        string    MyDocuments;
    [PropertyContext("Local Settings")]       
        string    LocalSettings;
     [PropertyContext("ScriptRunOn")]  
        string    ScriptRunOn;
     [PropertyContext("TotalSize")]
        string    TotalSize;
    [PropertyContext("RECYCLER")]
        string    RECYCLER;
};

 

 

Server_side_sms_MOF .MOF :---

 

[ SMS_Report     (TRUE),
  SMS_Group_Name ("DiskActivity"),
  SMS_Class_ID   ("MICROSOFT|Disk_Activity|1.0") ]

class Win32Reg_DiskActivity : SMS_Class_Template

   [SMS_Report (TRUE) ]  
        string   Activity;
    [SMS_Report (TRUE) ]  
        string   CleanDate;
    [SMS_Report (TRUE) ]
        string    DefragAnalysis;
    [SMS_Report (TRUE)]
        string    DefragDate;
    [SMS_Report (TRUE)]
        string    DefragStatus;
    [SMS_Report (TRUE)]
        string    DiskClean_status;
    [SMS_Report (TRUE)]
        string    DiskCleanLast_CleanDate;
    [SMS_Report (TRUE)]
        string    DiskSpace;
    [SMS_Report (TRUE)]
        string    Last_DefragDate;
};

[ SMS_Report     (TRUE),
  SMS_Group_Name ("UserProfile"),
  SMS_Class_ID   ("MICROSOFT|UserProfileSize|1.0") ]

class Win32Reg_UserProfileSize : SMS_Class_Template

   [SMS_Report (TRUE) ]  
        string   Profile;
    [SMS_Report (TRUE) ]  
        string   ApplicationData;
    [SMS_Report (TRUE) ]
        string    Desktop;
    [SMS_Report (TRUE)]
        string    MyDocuments;
    [SMS_Report (TRUE)]
        string    LocalSettings;
    [SMS_Report (TRUE)]
        string    ScriptRunOn;
    [SMS_Report (TRUE)]
        string    TotalSize;
    [SMS_Report (TRUE)]
        string    RECYCLER;
};

 

VBSCRIPT :-- UserProfileSize_Recycler.vbs

 

 

sNode = "."
Const MBCONVERSION= 1048576
Const HKEY_LOCAL_MACHINE = &H80000002
dim oFS, oFolder

Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
           & sNode & "/root/default:StdRegProv")

sPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
sValueName = "DefaultUserName"

If oReg.GetStringValue(HKEY_LOCAL_MACHINE, sPath, sValueName, sValue) = 0 Then
  'WScript.Echo "DefaultUserName from Registry Retrieved Remotely: " & sValue
End If

ScriptRunOn=Replace(Now(),"#","")

strKeyPath = "SOFTWARE\DesktopOptimization\UserProf\"
              oReg.CreateKey HKEY_LOCAL_MACHINE ,strKeyPath
strKeyPath1 = "SOFTWARE\DesktopOptimization\UserProf\"&sValue
              oReg.CreateKey HKEY_LOCAL_MACHINE ,strKeyPath1            

path="C:\Documents and Settings\"& sValue       
Set FSO = CreateObject("Scripting.FileSystemObject")

Set Folder = FSO.GetFolder(Path)
    TotalSize=FormatNumber(Folder.Size/MBCONVERSION,0)
    'MsgBox (TotalSize)
    strValueName ="TotalSize"
    strValue = TotalSize
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName,strValue
    strValueName ="ScriptRunOn"
    strValue = ScriptRunOn
    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName,strValue
Set colSubFolders = Folder.SubFolders
For Each subFolder In colSubFolders
                     FolderName = subFolder.Name
                       FolderSize = FormatNumber(subFolder.Size/MBCONVERSION,0)
                     'MsgBox(FolderName)
                     'MsgBox(FolderSize)
                     strValueName = FolderName
                     strValue = FolderSize
                     oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName,strValue
Next 

GetRecycleBinSize()

Function GetRecycleBinSize

        dim oFS, oFolder

        set oFS = WScript.CreateObject("Scripting.FileSystemObject")
        If oFS.FolderExists("C:\Recycler")Then
           Set oFolder = oFS.GetFolder("C:\Recycler")
           'wscript.echo oFolder.Name & ":Size=" & oFolder.Size
           RecycleBinSize=FormatNumber(oFolder.Size/MBCONVERSION,0)
           'wscript.echo RecycleBinSize
           strValueName = oFolder.Name
           strValue = RecycleBinSize
           oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName,strValue
        Else
           strValueName = "RECYCLER"
           strValue = "Folder C:\RECYCLER Not Found"
           oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName,strValue
        End If
End Function