Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Data;
- using System.Management;
- static class Module1
- {
- public static void Main()
- {
- ManagementObjectSearcher cpu =
- new ManagementObjectSearcher("SELECT ProcessorId FROM Win32_Processor");
- foreach (ManagementObject dvs in cpu.Get())
- {
- string id = dvs["ProcessorId"].ToString();
- Console.WriteLine(id);
- }
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment