Another off topic challenge

Colin Holgate colinholgate at gmail.com
Tue May 5 17:12:42 EDT 2020


Many of you are way more into tricky Windows things than I am, so I thought it would be worth asking this here.

In my Windows 10 I can run this line in PowerShell:

Get-WmiObject -Query "SELECT * FROM Win32_ComputerSystem”

It echos a few lines of information about my system. When I try the same on a customer’s machine I get this:

Get-WmiObject : Invalid class "Win32_ComputerSystem"
At line:1 char:1
+ Get-WmiObject -Query "SELECT * FROM Win32_ComputerSystem"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidType: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand


What is Win32_ComputerSystem, and what could make it be invalid?





More information about the use-livecode mailing list