- or download this
wmic path win32_computersystemproduct get uuid #works in CMD
- or download this
my $UUID = system ('wmic path win32_computersystemproduct get uuid');
- or download this
my ($UUID) = `ioreg -d2 -c IOPlatformExpertDevice` =~ /^.*\bIOPlatform
+UUID\b.*"([^"]+)"\s*$/m or print "failed to parse ioreg";