jmcleish
Posts: 513
Score: 17 Joined: 11/8/2002 Status: offline
|
I Use the info here: http://www.myitforum.com/articles/1/view.asp?id=833 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PcmciaBinary Value --> Start/ If value is 0 then it's a laptop. If value is 4 then it's a desktop I've used this quite successfully. here is the mof edit for it: ( I added the r at the end of the class etc (for some reason i can't remember now- anyway it works!) //PCMCIAr #pragma namespace("\\\\.\\root\\cimv2") #pragma deleteclass("PCMCIAr", NOFAIL) [DYNPROPS] class PCMCIAr { [key] string Keyname; uint32 Start; string Group; uint32 Tag; uint32 Type; uint32 ErrorControl; }; //instance of PCMCIA [DYNPROPS] Instance of PCMCIAr { KeyName = "PCMCIA Data"; [PropertyContext("local|HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\PCMCIA|Start"),Dynamic,Provider("RegPropProv")] Start; [PropertyContext("local|HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\PCMCIA|Group"),Dynamic,Provider("RegPropProv")] Group; [PropertyContext("local|HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\PCMCIA|Tag"),Dynamic,Provider("RegPropProv")] Tag; [PropertyContext("local|HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\PCMCIA|Type"),Dynamic,Provider("RegPropProv")] Type; [PropertyContext("local|HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\PCMCIA|ErrorControl"),Dynamic,Provider("RegPropProv")] ErrorControl; }; // PCMCIAr Reporting Class #pragma namespace("\\\\.\\root\\cimv2\\SMS") [SMS_Report(TRUE), SMS_Group_Name("PCMCIAr"), SMS_Class_ID("MICROSOFT|PCMCIAr|1.0")] class PCMCIAr : SMS_Class_Template { [SMS_Report(TRUE), key] string KeyName; [SMS_Report(TRUE) ] uint32 Start; [SMS_Report(TRUE) ] string Group; [SMS_Report(TRUE) ] uint32 Tag; [SMS_Report(TRUE) ] uint32 Type; [SMS_Report(TRUE) ] uint32 ErrorControl; }; Then once your clients have sent in the HW inv (after doing all the stuff required for a MOF edit) the collecton query would be: select SMS_R_System.ResourceID,SMS_R_System.ResourceType,SMS_R_System.Name,SMS_R_System.SMSUniqueIdentifier,SMS_R_System.ResourceDomainORWorkgroup,SMS_R_System.Client from SMS_R_System inner join SMS_G_System_PCMCIAR on SMS_G_System_PCMCIAR.ResourceID = SMS_R_System.ResourceId where SMS_G_System_PCMCIAR.Start = 0 Jane
|