ManagementObjectSearcher Get() Method throws an exception
I'm attempting to run the following code: ManagementObjectSearcher mos = new ManagementObjectSearcher("select * from Win32_Processor"); // This line throws the exception ManagementObjectCollection moc = mos.Get(); and I get the following excpetion: System.Management.ManagementException: Invalid class at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() at LicenseCheckThingy.Form1.button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.