Advertisement
Guest User

FicheroMOF

a guest
Jan 30th, 2015
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.63 KB | None | 0 0
  1. //==================================================================
  2. //
  3. // Configuration.mof - WMI configuration that will be compiled on
  4. // SMS clients.
  5. //
  6. // Copyright (c) Microsoft Corporation, All Rights Reserved
  7. //
  8. //==================================================================
  9.  
  10.  
  11. //==================================================================
  12. // Define registry classes for inventory reporting
  13. //
  14. // - Registry key/value class definition should be done in cimv2,
  15. // - SMS class definition should be done in cimv2\\sms
  16. //==================================================================
  17.  
  18. //----------------------
  19. // Add Remove Programs
  20. //----------------------
  21. #PRAGMA AUTORECOVER
  22.  
  23. #pragma namespace ("\\\\.\\root\\cimv2")
  24.  
  25. [ dynamic,
  26. provider("RegProv"),
  27. ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
  28. ]
  29. class Win32Reg_AddRemovePrograms
  30. {
  31. [key]
  32. string ProdID;
  33. [PropertyContext("DisplayName")]
  34. string DisplayName;
  35. [PropertyContext("InstallDate")]
  36. string InstallDate;
  37. [PropertyContext("Publisher") ]
  38. string Publisher;
  39. [PropertyContext("DisplayVersion")]
  40. string Version;
  41. };
  42.  
  43. [ dynamic,
  44. provider("RegProv"),
  45. ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
  46. ]
  47. class Win32Reg_AddRemovePrograms64
  48. {
  49. [key]
  50. string ProdID;
  51. [PropertyContext("DisplayName")]
  52. string DisplayName;
  53. [PropertyContext("InstallDate")]
  54. string InstallDate;
  55. [PropertyContext("Publisher") ]
  56. string Publisher;
  57. [PropertyContext("DisplayVersion")]
  58. string Version;
  59. };
  60. //----------------------
  61. // Virtual PC
  62. //----------------------
  63.  
  64. #pragma namespace ("\\\\.\\root\\cimv2")
  65.  
  66. [DYNPROPS]
  67. class Win32Reg_SMSGuestVirtualMachine
  68. {
  69. [key]
  70. string InstanceKey;
  71. string PhysicalHostName;
  72. string PhysicalHostNameFullyQualified;
  73. };
  74.  
  75. [DYNPROPS]
  76. instance of Win32Reg_SMSGuestVirtualMachine
  77. {
  78. InstanceKey = "VPCKey";
  79. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),
  80. Dynamic, Provider("RegPropProv")]
  81. PhysicalHostName;
  82. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),
  83. Dynamic, Provider("RegPropProv")]
  84. PhysicalHostNameFullyQualified;
  85. };
  86.  
  87. [DYNPROPS]
  88. class Win32Reg_SMSGuestVirtualMachine64
  89. {
  90. [key]
  91. string InstanceKey;
  92. string PhysicalHostName;
  93. string PhysicalHostNameFullyQualified;
  94. };
  95.  
  96. [DYNPROPS]
  97. instance of Win32Reg_SMSGuestVirtualMachine64
  98. {
  99. InstanceKey = "VPCKey";
  100. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),
  101. Dynamic, Provider("RegPropProv")]
  102. PhysicalHostName;
  103. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),
  104. Dynamic, Provider("RegPropProv")]
  105. PhysicalHostNameFullyQualified;
  106. };
  107.  
  108. //----------------------
  109. // Advanced Client Ports
  110. //----------------------
  111.  
  112. #pragma namespace ("\\\\.\\root\\cimv2")
  113.  
  114. #pragma deleteclass("Win32Reg_SMSAdvancedClientPorts", NOFAIL)
  115.  
  116. [DYNPROPS]
  117. class Win32Reg_SMSAdvancedClientPorts
  118. {
  119. [key]
  120. string InstanceKey;
  121. uint32 PortName;
  122. uint32 HttpsPortName;
  123. };
  124.  
  125. [DYNPROPS]
  126. instance of Win32Reg_SMSAdvancedClientPorts
  127. {
  128. InstanceKey = "SMSPortKey";
  129. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpPort"),
  130. Dynamic, Provider("RegPropProv")]
  131. PortName;
  132. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsPort"),
  133. Dynamic, Provider("RegPropProv")]
  134. HttpsPortName;
  135. };
  136.  
  137.  
  138.  
  139. //--------------------------------------------
  140. // Advanced Client SSL Security COnfigurations
  141. //--------------------------------------------
  142.  
  143. #pragma namespace ("\\\\.\\root\\cimv2")
  144.  
  145. #pragma deleteclass("Win32Reg_SMSAdvancedClientSSLConfiguration", NOFAIL)
  146.  
  147. [DYNPROPS]
  148. class Win32Reg_SMSAdvancedClientSSLConfiguration
  149. {
  150. [key]
  151. string InstanceKey;
  152. uint32 HttpsStateFlags;
  153. string CertificateStore;
  154. string CertificateSelectionCriteria;
  155. string InternetMPHostName;
  156. uint32 SelectFirstCertificate;
  157. uint32 ClientAlwaysOnInternet;
  158. };
  159.  
  160. [DYNPROPS]
  161. instance of Win32Reg_SMSAdvancedClientSSLConfiguration
  162. {
  163. InstanceKey = "SMSSSLConfiguration";
  164.  
  165. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsState"),
  166. Dynamic, Provider("RegPropProv")]
  167. HttpsStateFlags;
  168.  
  169. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Store"),
  170. Dynamic, Provider("RegPropProv")]
  171. CertificateStore;
  172.  
  173. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Selection Criteria"),
  174. Dynamic, Provider("RegPropProv")]
  175. CertificateSelectionCriteria;
  176.  
  177. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Internet Facing|Internet MP Hostname"),
  178. Dynamic, Provider("RegPropProv")]
  179. InternetMPHostName;
  180.  
  181. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Select First Certificate"),
  182. Dynamic, Provider("RegPropProv")]
  183. SelectFirstCertificate;
  184.  
  185. [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|ClientAlwaysOnInternet"),
  186. Dynamic, Provider("RegPropProv")]
  187. ClientAlwaysOnInternet;
  188. };
  189.  
  190. // Declare the class to prevent older clients from sending error status messages
  191. #pragma namespace("\\\\.\\root")
  192. instance of __Namespace
  193. {
  194. Name = "ccm" ;
  195. };
  196. #pragma namespace("\\\\.\\root\\ccm")
  197. instance of __Namespace
  198. {
  199. Name = "SoftwareMeteringAgent" ;
  200. };
  201. #pragma namespace("\\\\.\\root\\ccm\\SoftwareMeteringAgent")
  202. class CCM_RecentlyUsedApps
  203. {
  204. [Key]
  205. string FolderPath;
  206.  
  207. [Key]
  208. string ExplorerFileName;
  209.  
  210. [Key]
  211. string LastUserName;
  212.  
  213. string OriginalFileName;
  214. string FileVersion;
  215. uint32 FileSize;
  216. string ProductName;
  217. string ProductVersion;
  218. string CompanyName;
  219. uint32 ProductLanguage;
  220. string FileDescription;
  221. uint32 LaunchCount;
  222. datetime LastUsedTime;
  223.  
  224. string ProductCode;
  225. string AdditionalProductCodes;
  226. string msiDisplayName;
  227. string msiPublisher;
  228. string msiVersion;
  229. string SoftwarePropertiesHash;
  230. string FilePropertiesHash;
  231. };
  232.  
  233.  
  234. #pragma namespace("\\\\.\\root")
  235. instance of __Namespace
  236. {
  237. Name = "ccm" ;
  238. };
  239.  
  240. #pragma namespace("\\\\.\\root\\ccm")
  241.  
  242.  
  243. //--------------------------------------------
  244. // CCM_LogicalMemoryConfiguration
  245. //--------------------------------------------
  246. #pragma namespace("\\\\.\\root\\cimv2")
  247.  
  248. [Union,ViewSources{"select Name,FreeVirtualMemory,SizeStoredInPagingFiles,TotalVisibleMemorySize,TotalVirtualMemorySize from Win32_OperatingSystem"},ViewSpaces{"\\\\.\\root\\cimv2"},
  249. dynamic,Provider("MS_VIEW_INSTANCE_PROVIDER")]
  250. class CCM_LogicalMemoryConfiguration
  251. {
  252. [PropertySources{"FreeVirtualMemory"}]
  253. uint64 AvailableVirtualMemory;
  254. [PropertySources{"Name"},key]
  255. string Name;
  256. [PropertySources{"SizeStoredInPagingFiles"}]
  257. uint64 TotalPageFileSpace;
  258. [PropertySources{"TotalVisibleMemorySize"}]
  259. uint64 TotalPhysicalMemory;
  260. [PropertySources{"TotalVirtualMemorySize"}]
  261. uint64 TotalVirtualMemory;
  262. };
  263.  
  264.  
  265. //Inventario Code
  266. #pragma namespace ("\\\\.\\root\\cimv2")
  267. #pragma deleteclass("Code", NOFAIL)
  268. [DYNPROPS]
  269. Class Code
  270. {
  271. [key] string KeyName;
  272. String VersionMaqueta;
  273. String Version;
  274. };
  275.  
  276. [DYNPROPS]
  277. Instance of Code
  278. {
  279. keyname="Registro";
  280. [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Code\\Inventario|VersionMaqueta"),Dynamic,Provider("RegPropProv")] VersionMaqueta;
  281. [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Code\\Inventario|Version"),Dynamic,Provider("RegPropProv")] Version;
  282.  
  283. };
  284.  
  285. //Inventario Wifi
  286.  
  287. // 21/01/2015 15:17:10
  288.  
  289. #pragma namespace ("\\\\.\\root\\cimv2")
  290. #pragma deleteclass("wifi", NOFAIL)
  291. [DYNPROPS]
  292. Class wifi
  293. {
  294. [key] string KeyName;
  295. String Mediatype;
  296. String Providername;
  297. String DriverDate;
  298. String DriverVersion;
  299. String DriverDesc;
  300. };
  301.  
  302. [DYNPROPS]
  303. Instance of Wifi
  304. {
  305. keyname="Wifi Driver";
  306. [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|MediaType"),Dynamic,Provider("RegPropProv")] MediaType;
  307. [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|ProviderName"),Dynamic,Provider("RegPropProv")] ProviderName;
  308. [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|DriverDate"),Dynamic,Provider("RegPropProv")] DriverDate;
  309. [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|DriverVersion"),Dynamic,Provider("RegPropProv")] DriverVersion;
  310. [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|DriverDesc"),Dynamic,Provider("RegPropProv")] DriverDesc;
  311. };
  312.  
  313.  
  314.  
  315. //========================
  316. // Added extensions start
  317. //========================
  318.  
  319. //========================
  320. // Added extensions end
  321. //========================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement