Get-WmiObject 拋出“對記憶體位置的存取無效。”

Get-WmiObject 拋出“對記憶體位置的存取無效。”

我嘗試在 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

搜尋谷歌我只發現可能WinPE-WMI.cab丟失了。但事實並非如此!

有任何想法嗎?

相關內容