首页 > 解决方案 > SMS_InstalledSoftware 中的软件代码

问题描述

我正在尝试使用 SMS_InstalledSoftware 类了解已安装应用程序的产品代码,但它提供了标准化产品代码的“SoftwareCode”。这个标准化的产品代码是什么?

我试图按照 SMS_installedSoftware 获取产品代码(“ https://docs.microsoft.com/en-us/sccm/develop/reference/core/clients/client-classes/sms_installedsoftware-client-wmi-class ”)但是当我正在执行这个我没有得到产品代码。我正在获取软件代码。

(gwmi -namespace "root\cimv2\sms" -class SMS_InstalledSoftware |where-Object  {$_.Softwarecode -like "*%ProductCode GUID%*"}).Productversion

产品代码 GUID 与软件代码不同

标签: sccm

解决方案


推荐阅读