TJ
static UIID
24 Mar 2020, 15:41
Dear Panagiotis,
Could you please advise on installing a license to cbot.
I want to get unique code of computer using :
using System;
using System.Collections.Generic;
using System.Management;
class Program
{
static void Main(string[] args)
{
Dictionary<string, string> ids = new Dictionary<string, string>();
ManagementObjectSearcher searcher;
try
{
//UUID
searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT UUID FROM Win32_ComputerSystemProduct");
foreach (ManagementObject queryObj in searcher.Get())
ids.Add("UUID", queryObj["UUID"].ToString());
}
catch { }
foreach (var x in ids)
Console.WriteLine(x.Key + ": " + x.Value);
Console.ReadKey();
//source : https://www.cyberforum.ru/csharp-net/thread352410.html
}
}
But looks like cAlgo doesn't support ManagementObjectSearcher.
Maybe there is alternative way without going to 3rd party license packages ?



PanagiotisCharalampous
24 Mar 2020, 15:56
Hi Tj11,
You just need to add the relevant reference. See below
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous