sccm - 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 与软件代码不同
解决方案
推荐阅读
- html - 老虎机的 CSS 流体布局问题
- javascript - 单击时菜单不切换(关闭)
- node.js - 如何管理在输出类型中可以为空的 GraphQL 子对象类型?
- scala - Spark,Scala在从文件读取后无法正确创建视图
- lua - 如何在 Lua 脚本中像 arduino 一样拥有 currentMilis 和 previousMillis
- java - Java - 如何在不使用 while 循环的情况下检查扫描器输入是否为整数?
- angular - 如何构造 XPath 以包含 HTML 中的特定元素?
- python - 由于“超出最大递归深度”,如何将递归函数转换为迭代?
- java - Lambda 捕获与非捕获
- python - Pygame Snake - 苹果在蛇内产卵