WMI - Directly accessing the singleton instance of Win32_OperatingSystem
问题 I've having trouble directly accessing the Win32_OperatingSystem management class that is exposed via WMI. It is a singleton class, and I'm pretty certain "Win32_OperatingSystem=@" is the correct path syntax to get the instance of a singleton. The call to InvokeMethod produces the exception listed at the bottom of the question, as does accessing the ClassPath property (commented line). What am I doing wrong? [I'm aware that I can use ManagementObjectSearcher/ObjectQuery to return a collection