jeaostro Posted November 4, 2009 Report post Posted November 4, 2009 Hello Im trying to create a report that shows the computer name for every computer in the domain, but also what model(brand) it is. For example Computer Name: XP-44 Computer Model: 245828G (Lenovo) Can anyone point me in the right direction? Thanks Quote Share this post Link to post Share on other sites More sharing options...
0 jeaostro Posted November 4, 2009 Report post Posted November 4, 2009 If possible: Computer Name Computer User Computer Model Computer Manufacture Total Disk Space Free Disk Space Total Memory Im not any god at sql query so thanks for all I can get from you guys Quote Share this post Link to post Share on other sites More sharing options...
0 wmmayms Posted December 10, 2009 Report post Posted December 10, 2009 Hi Here is a report i created a while back. If a computer has more then 1 disk or more then 1 ip adress you will get another row for that computer. SELECT A.Name0, B.SerialNumber0, A.Manufacturer0, A.Model0, C.Name0 AS 'Processor', D.TotalPhysicalMemory0 AS 'Memory (KBytes)', E.Size0 AS 'Disk Size (MBytes)', F.MACAddress0, F.IPAddress0, G.AD_Site_Name0 AS 'AD Site', A.UserName0 AS 'Last user logged in', H.Caption0 AS 'Operating System', H.CSDVersion0 AS 'Service Pack', G.Creation_Date0 AS 'Creationdate in SMS', I.LastHWScan FROM v_GS_COMPUTER_SYSTEM A, v_GS_PC_BIOS B, v_GS_PROCESSOR C, v_GS_X86_PC_MEMORY D, v_GS_DISK E, v_GS_NETWORK_ADAPTER_CONFIGUR F, v_R_System G, v_GS_OPERATING_SYSTEM H, v_GS_WORKSTATION_STATUS I WHERE A.ResourceID = B.ResourceID AND A.ResourceID = C.ResourceID AND A.ResourceID = D.ResourceID AND A.ResourceID = E.ResourceID AND A.ResourceID = F.ResourceID AND A.ResourceID = G.ResourceID AND A.ResourceID = H.ResourceID AND A.ResourceID = I.ResourceID AND F.IPAddress0 != NULL AND F.IPAddress0 != '0.0.0.0' GROUP BY A.Name0, B.SerialNumber0, A.Manufacturer0, A.Model0, C.Name0, D.TotalPhysicalMemory0, E.Size0, F.MACAddress0, F.IPAddress0, G.AD_Site_Name0, A.UserName0, H.Caption0, H.CSDVersion0, G.Creation_Date0, I.LastHWScan Example: Quote Share this post Link to post Share on other sites More sharing options...
0 jeaostro Posted January 21, 2010 Report post Posted January 21, 2010 thank u Quote Share this post Link to post Share on other sites More sharing options...
0 jeaostro Posted January 21, 2010 Report post Posted January 21, 2010 Can i just copy paste this into a new Custom made report? in the SQL statement filed? Trying to run it but nothing happens? Quote Share this post Link to post Share on other sites More sharing options...
0 jeaostro Posted January 21, 2010 Report post Posted January 21, 2010 well something happens, its doesnt show any information when i run the report Do I need to link to another report? Quote Share this post Link to post Share on other sites More sharing options...
0 sreeni Posted February 18, 2010 Report post Posted February 18, 2010 well something happens, its doesnt show any information when i run the report Do I need to link to another report? Hi I did a try to modify the code and to execute. I Just modified the code which wmmayms given....Thanks for this useful code wmmayms @jeaostro Just try this... Hope it works.... ------------------- SELECT A.Name0, B.SerialNumber0, A.Manufacturer0, A.Model0, C.Name0 AS 'Processor', D.TotalPhysicalMemory0 AS 'Memory (KBytes)', E.Size0 AS 'Disk Size (MBytes)', F.MACAddress0, F.IPAddress0, G.AD_Site_Name0 AS 'AD Site', A.UserName0 AS 'Last user logged in', H.Caption0 AS 'Operating System', H.CSDVersion0 AS 'Service Pack', G.Creation_Date0 AS 'Creationdate in SMS', I.LastHWScan FROM v_GS_COMPUTER_SYSTEM A, v_GS_PC_BIOS B, v_GS_PROCESSOR C, v_GS_X86_PC_MEMORY D, v_GS_DISK E, v_GS_NETWORK_ADAPTER_CONFIGUR F, v_R_System G, v_GS_OPERATING_SYSTEM H, v_GS_WORKSTATION_STATUS I WHERE A.ResourceID = B.ResourceID AND A.ResourceID = C.ResourceID AND A.ResourceID = D.ResourceID AND A.ResourceID = E.ResourceID AND A.ResourceID = F.ResourceID AND A.ResourceID = G.ResourceID AND A.ResourceID = H.ResourceID AND A.ResourceID = I.ResourceID and F.IPAddress0 is not NULL AND F.IPAddress0 not like '0.0.0.0' GROUP BY A.Name0, B.SerialNumber0, A.Manufacturer0, A.Model0, C.Name0, D.TotalPhysicalMemory0, E.Size0, F.IPAddress0, F.MACAddress0, G.AD_Site_Name0, A.UserName0, H.Caption0, H.CSDVersion0, G.Creation_Date0, I.LastHWScan Thanks Sreeni Quote Share this post Link to post Share on other sites More sharing options...
0 m0ck Posted November 10, 2010 Report post Posted November 10, 2010 Does SCCM inventors all the data from clients' WMI? In the Win32_ComputerSystemProduct wmi class there's a Version string which holds "friendly" model name of the computer, instead of model numbers in case of Lenovos. Does anyone know if this wmi data inventoried? It would be much better to use that for the Count of Models report... Was looking in the DB tables for a clue.. no go.. Anyone? Thanks, Dmitry Quote Share this post Link to post Share on other sites More sharing options...
0 Eswar Koneti Posted November 11, 2010 Report post Posted November 11, 2010 Does SCCM inventors all the data from clients' WMI? In the Win32_ComputerSystemProduct wmi class there's a Version string which holds "friendly" model name of the computer, instead of model numbers in case of Lenovos. Does anyone know if this wmi data inventoried? It would be much better to use that for the Count of Models report... Was looking in the DB tables for a clue.. no go.. Anyone? Thanks, Dmitry SCCM will inventory all the values based on sms_def.mof .If you need additional values to be extended, you can check this by sms_def.mof file from your SCCM installation drive:\inboxes\clifiles.src\hinv\sms_def.mof ? Quote Share this post Link to post Share on other sites More sharing options...
Hello
Im trying to create a report that shows the computer name for every computer in the domain, but also what model(brand) it is.
For example Computer Name: XP-44 Computer Model: 245828G (Lenovo)
Can anyone point me in the right direction?
Thanks
Share this post
Link to post
Share on other sites