Error 105, error reading running windows processes

Hello,

I had success to get rid of this issue on a customer laptop today
I am writing here the experience I had today because I could not see anywhere anyone confirming that they got rid of this problem. The links provided on top did not help in my case. So what worked for me:
I have prompted ChatGPT with the error message from powershell after typing this commands (no error message visible on a healthy PC that doesn’t trig error 105):

$query = "select * from WIN32_Process"
Get-WmiObject -Query $query

error is

PS C:\Windows\system32> $query = "select * from WIN32_Process"
PS C:\Windows\system32> Get-WmiObject -Query $query
Get-WmiObject : Classe non valide « WIN32_Process »
Au caractère Ligne:1 : 1
+ Get-WmiObject -Query $query
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidType: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
PS C:\Windows\system32>

Then ChatGPT took me through several steps
this is a summary:

  1. Check if the Win32_Process class exists
    Get-WmiObject -Namespace "root\cimv2" -List | Where-Object { $_.Name -eq "Win32_Process" }
  2. Nothing appears on the customer’s laptop (but was ok for me)
  3. Check if the MOF file is present → returned TRUE
    Test-Path C:\Windows\System32\wbem\cimwin32.mof
  4. Re-register WMI classes→ mofcomp C:\Windows\System32\wbem\cimwin32.mof
  5. test with
    Get-WmiObject -Namespace "root\cimv2" -List | Where-Object { $_.Name -eq "Win32_Process" }
  6. test with
    Get-WmiObject -Query "select * from Win32_Process"
  7. test in the AS project
1 Like