Help for this page

Select Code to Download


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