Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. ==================================================
  2. Product Name : Microsoft Office Professional 2013
  3. Product ID : 00000-00000-00000-00000
  4. Product Key : 00000-00000-00000-00000-00000
  5. Installation Folder : C:Program FilesMicrosoft OfficeOffice15
  6. Service Pack :
  7. Build Number :
  8. Computer Name : PC-000-0
  9. Modified Time : 06.12.2018 14:03:44
  10. ==================================================
  11.  
  12. ==================================================
  13. Product Name : Windows 10 Pro
  14. Product ID : 00000-00000-00000-00000
  15. Product Key : 00000-00000-00000-00000-00000
  16. Installation Folder : C:Windows
  17. Service Pack :
  18. Build Number : 17763
  19. Computer Name : PC-000-0
  20. Modified Time : 18.07.2019 09:50:37
  21. ==================================================
  22.  
  23. PC-000-0;Microsoft Office Professional 2013;00000-00000-00000-00000-00000
  24.  
  25. BEGIN {
  26. RS="nn";
  27. FS="n";
  28. }
  29. {
  30. if ($1 ~ /Product Name/) {
  31. split($1,productArray,":")
  32. product = productArray[2]
  33. }
  34.  
  35. if ($1 ~ /Product Key/) {
  36. split($1,keyArray,":")
  37. key = keyArray[2]
  38. }
  39.  
  40. if ($1 ~ /Computer Name/ ) {
  41. split($1,computerArray,":")
  42. computer = computerArray[2]
  43. #print product
  44. #print key
  45. #print computer
  46. printf("n")
  47. printf("%s ; %s ; %s n", computer, product, key)
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement