相关疑难解决方法(0)

Powershell 6 的哪个库包含 get-wmiobject 命令?

尝试get-WmiObject在 PowerShell(版本 6)中使用该命令时出现以下错误:

PS C:\Users\zsofi> Get-WmiObject Win32_product | select name, packagecache

Get-WmiObject : The term 'Get-WmiObject' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-WmiObject Win32_product | select name, packagecache
+ ~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Get-WmiObject:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException`
Run Code Online (Sandbox Code Playgroud)

powershell wmi cim powershell-core

13
推荐指数
2
解决办法
6778
查看次数

标签 统计

cim ×1

powershell ×1

powershell-core ×1

wmi ×1