Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==================================================================
- //
- // Configuration.mof - WMI configuration that will be compiled on
- // SMS clients.
- //
- // Copyright (c) Microsoft Corporation, All Rights Reserved
- //
- //==================================================================
- //==================================================================
- // Define registry classes for inventory reporting
- //
- // - Registry key/value class definition should be done in cimv2,
- // - SMS class definition should be done in cimv2\\sms
- //==================================================================
- //----------------------
- // Add Remove Programs
- //----------------------
- #PRAGMA AUTORECOVER
- #pragma namespace ("\\\\.\\root\\cimv2")
- [ dynamic,
- provider("RegProv"),
- ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
- ]
- class Win32Reg_AddRemovePrograms
- {
- [key]
- string ProdID;
- [PropertyContext("DisplayName")]
- string DisplayName;
- [PropertyContext("InstallDate")]
- string InstallDate;
- [PropertyContext("Publisher") ]
- string Publisher;
- [PropertyContext("DisplayVersion")]
- string Version;
- };
- [ dynamic,
- provider("RegProv"),
- ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
- ]
- class Win32Reg_AddRemovePrograms64
- {
- [key]
- string ProdID;
- [PropertyContext("DisplayName")]
- string DisplayName;
- [PropertyContext("InstallDate")]
- string InstallDate;
- [PropertyContext("Publisher") ]
- string Publisher;
- [PropertyContext("DisplayVersion")]
- string Version;
- };
- //----------------------
- // Virtual PC
- //----------------------
- #pragma namespace ("\\\\.\\root\\cimv2")
- [DYNPROPS]
- class Win32Reg_SMSGuestVirtualMachine
- {
- [key]
- string InstanceKey;
- string PhysicalHostName;
- string PhysicalHostNameFullyQualified;
- };
- [DYNPROPS]
- instance of Win32Reg_SMSGuestVirtualMachine
- {
- InstanceKey = "VPCKey";
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),
- Dynamic, Provider("RegPropProv")]
- PhysicalHostName;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),
- Dynamic, Provider("RegPropProv")]
- PhysicalHostNameFullyQualified;
- };
- [DYNPROPS]
- class Win32Reg_SMSGuestVirtualMachine64
- {
- [key]
- string InstanceKey;
- string PhysicalHostName;
- string PhysicalHostNameFullyQualified;
- };
- [DYNPROPS]
- instance of Win32Reg_SMSGuestVirtualMachine64
- {
- InstanceKey = "VPCKey";
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),
- Dynamic, Provider("RegPropProv")]
- PhysicalHostName;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),
- Dynamic, Provider("RegPropProv")]
- PhysicalHostNameFullyQualified;
- };
- //----------------------
- // Advanced Client Ports
- //----------------------
- #pragma namespace ("\\\\.\\root\\cimv2")
- #pragma deleteclass("Win32Reg_SMSAdvancedClientPorts", NOFAIL)
- [DYNPROPS]
- class Win32Reg_SMSAdvancedClientPorts
- {
- [key]
- string InstanceKey;
- uint32 PortName;
- uint32 HttpsPortName;
- };
- [DYNPROPS]
- instance of Win32Reg_SMSAdvancedClientPorts
- {
- InstanceKey = "SMSPortKey";
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpPort"),
- Dynamic, Provider("RegPropProv")]
- PortName;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsPort"),
- Dynamic, Provider("RegPropProv")]
- HttpsPortName;
- };
- //--------------------------------------------
- // Advanced Client SSL Security COnfigurations
- //--------------------------------------------
- #pragma namespace ("\\\\.\\root\\cimv2")
- #pragma deleteclass("Win32Reg_SMSAdvancedClientSSLConfiguration", NOFAIL)
- [DYNPROPS]
- class Win32Reg_SMSAdvancedClientSSLConfiguration
- {
- [key]
- string InstanceKey;
- uint32 HttpsStateFlags;
- string CertificateStore;
- string CertificateSelectionCriteria;
- string InternetMPHostName;
- uint32 SelectFirstCertificate;
- uint32 ClientAlwaysOnInternet;
- };
- [DYNPROPS]
- instance of Win32Reg_SMSAdvancedClientSSLConfiguration
- {
- InstanceKey = "SMSSSLConfiguration";
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsState"),
- Dynamic, Provider("RegPropProv")]
- HttpsStateFlags;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Store"),
- Dynamic, Provider("RegPropProv")]
- CertificateStore;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Selection Criteria"),
- Dynamic, Provider("RegPropProv")]
- CertificateSelectionCriteria;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Internet Facing|Internet MP Hostname"),
- Dynamic, Provider("RegPropProv")]
- InternetMPHostName;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Select First Certificate"),
- Dynamic, Provider("RegPropProv")]
- SelectFirstCertificate;
- [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|ClientAlwaysOnInternet"),
- Dynamic, Provider("RegPropProv")]
- ClientAlwaysOnInternet;
- };
- // Declare the class to prevent older clients from sending error status messages
- #pragma namespace("\\\\.\\root")
- instance of __Namespace
- {
- Name = "ccm" ;
- };
- #pragma namespace("\\\\.\\root\\ccm")
- instance of __Namespace
- {
- Name = "SoftwareMeteringAgent" ;
- };
- #pragma namespace("\\\\.\\root\\ccm\\SoftwareMeteringAgent")
- class CCM_RecentlyUsedApps
- {
- [Key]
- string FolderPath;
- [Key]
- string ExplorerFileName;
- [Key]
- string LastUserName;
- string OriginalFileName;
- string FileVersion;
- uint32 FileSize;
- string ProductName;
- string ProductVersion;
- string CompanyName;
- uint32 ProductLanguage;
- string FileDescription;
- uint32 LaunchCount;
- datetime LastUsedTime;
- string ProductCode;
- string AdditionalProductCodes;
- string msiDisplayName;
- string msiPublisher;
- string msiVersion;
- string SoftwarePropertiesHash;
- string FilePropertiesHash;
- };
- #pragma namespace("\\\\.\\root")
- instance of __Namespace
- {
- Name = "ccm" ;
- };
- #pragma namespace("\\\\.\\root\\ccm")
- //--------------------------------------------
- // CCM_LogicalMemoryConfiguration
- //--------------------------------------------
- #pragma namespace("\\\\.\\root\\cimv2")
- [Union,ViewSources{"select Name,FreeVirtualMemory,SizeStoredInPagingFiles,TotalVisibleMemorySize,TotalVirtualMemorySize from Win32_OperatingSystem"},ViewSpaces{"\\\\.\\root\\cimv2"},
- dynamic,Provider("MS_VIEW_INSTANCE_PROVIDER")]
- class CCM_LogicalMemoryConfiguration
- {
- [PropertySources{"FreeVirtualMemory"}]
- uint64 AvailableVirtualMemory;
- [PropertySources{"Name"},key]
- string Name;
- [PropertySources{"SizeStoredInPagingFiles"}]
- uint64 TotalPageFileSpace;
- [PropertySources{"TotalVisibleMemorySize"}]
- uint64 TotalPhysicalMemory;
- [PropertySources{"TotalVirtualMemorySize"}]
- uint64 TotalVirtualMemory;
- };
- //Inventario Code
- #pragma namespace ("\\\\.\\root\\cimv2")
- #pragma deleteclass("Code", NOFAIL)
- [DYNPROPS]
- Class Code
- {
- [key] string KeyName;
- String VersionMaqueta;
- String Version;
- };
- [DYNPROPS]
- Instance of Code
- {
- keyname="Registro";
- [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Code\\Inventario|VersionMaqueta"),Dynamic,Provider("RegPropProv")] VersionMaqueta;
- [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Code\\Inventario|Version"),Dynamic,Provider("RegPropProv")] Version;
- };
- //Inventario Wifi
- // 21/01/2015 15:17:10
- #pragma namespace ("\\\\.\\root\\cimv2")
- #pragma deleteclass("wifi", NOFAIL)
- [DYNPROPS]
- Class wifi
- {
- [key] string KeyName;
- String Mediatype;
- String Providername;
- String DriverDate;
- String DriverVersion;
- String DriverDesc;
- };
- [DYNPROPS]
- Instance of Wifi
- {
- keyname="Wifi Driver";
- [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|MediaType"),Dynamic,Provider("RegPropProv")] MediaType;
- [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|ProviderName"),Dynamic,Provider("RegPropProv")] ProviderName;
- [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|DriverDate"),Dynamic,Provider("RegPropProv")] DriverDate;
- [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|DriverVersion"),Dynamic,Provider("RegPropProv")] DriverVersion;
- [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\0012|DriverDesc"),Dynamic,Provider("RegPropProv")] DriverDesc;
- };
- //========================
- // Added extensions start
- //========================
- //========================
- // Added extensions end
- //========================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement