有没有办法在 powershell 中列出服务的制造商?
问问题
434 次
1 回答
1
它隐藏在 pathname 属性指向的文件的 versioninfo 属性中。此外, pathname 属性似乎在值中有引号。
这有助于获得第一个。可能不适用于所有人:
get-childitem -path ((get-wmiobject win32_service | select-object -first 1 -expand pathname) -replace '"','')| select-object -expand VersionInfo | select-object -expand CompanyName
于 2013-09-22T02:22:34.223 回答