我正在尝试在 WinPE(版本 10.0.10586.0)下运行以下 PowerShell 命令:
Get-WmiObject -Class Win32_ComputerSystem
但是我收到此错误:
Get-WmiObject : Invalid access to memory location. (Exception from HRESULT: 0x800703E6)
At line:1 char:1
+ Get-WmiObject -Class Win32_ComputerSystem
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WmiObject], BadImageFormatException
+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
在 Google 上搜索后,我只发现WinPE-WMI.cab
可能丢失了。但事实并非如此!
有任何想法吗?