Skip to content
Snippets Groups Projects
Commit 172471a2 authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Changed ProcessorId to SerialNumber

parent a97917f5
No related branches found
No related tags found
1 merge request!21Changed ProcessorId to SerialNumber
......@@ -45,7 +45,7 @@ namespace Wetterstation
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Processor");
foreach (ManagementObject queryObj in searcher.Get()) {
result = queryObj["ProcessorId"] + Environment.UserName;
result = queryObj["SerialNumber"] + Environment.UserName;
}
}
catch (ManagementException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment