Skip to content

32 vs 64 Bit Report (Count Wrong)

Featured Replies

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
  • Author

Worked like a charm.

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.