How to determine OS Platform with WMI?

后端 未结 13 3574
無奈伤痛
無奈伤痛 2021-02-20 03:46

I am trying to figure out if there is a location in WMI that will return the OS Architecture (i.e. 32-bit or 64-bit) that will work across \"all\" versions of Windows. I though

相关标签:
13条回答
  • 2021-02-20 04:51

    This isn't exactly what you asked for, but I just used this in a WMI query (Group Policy Preference targeting) and it appears to work thus far:

    SELECT * FROM Win32_ComputerSystem WHERE SystemType="x64-based pc"
    
    0 讨论(0)
提交回复
热议问题