I found this code on this site, but when I run it I get more computers than I have in my environment. From playing around, I did notice I have duplicate resourceid's in the v_gs_processor table. I believe this is what is throwing my numbers off. Any ideas?
SELECT pr.datawidth0 [Processor bits], pr.addresswidth0 [OS bits], sys.Operating_system_Name_and0[OS Name],COUNT(sys.resourceid)[Computers]
FROM v_r_system sys JOIN v_gs_processor pr ON sys.resourceid=pr.resourceid
GROUP BY pr.datawidth0, pr.addresswidth0, sys.Operating_system_Name_and0
ORDER BY pr.datawidth0, pr.addresswidth0, sys.Operating_system_Name_and0
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
I found this code on this site, but when I run it I get more computers than I have in my environment. From playing around, I did notice I have duplicate resourceid's in the v_gs_processor table. I believe this is what is throwing my numbers off. Any ideas?
Share this post
Link to post
Share on other sites