Facebook
From Colossal Monkey, 6 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 90
  1. internal static void serialchecker()
  2.         {
  3.             StreamWriter File = new StreamWriter("C:\\Users\\Anwender\\Desktop\\HWID.bat");
  4.  
  5.             File.Write(@"@echo off
  6. title Serial Number Checker
  7. mode con: cols=180 lines=62
  8. color e
  9. echo.
  10. echo Serial Number Checker
  11. echo.
  12. color e
  13. echo Disk
  14. echo ========================
  15. wmic diskdrive get serialnumber
  16. echo Motherboard
  17. echo ========================
  18. wmic baseboard get serialnumber
  19. echo SMBios
  20. echo ========================
  21. wmic path win32_computersystemproduct get uuid
  22. echo GPU
  23. echo ========================
  24. wmic PATH Win32_VideoController GET Description,PNPDeviceID
  25. echo RAM
  26. echo ========================
  27. wmic memorychip get serialnumber
  28. echo Bios
  29. echo ========================
  30. wmic csproduct get uuid
  31. echo CPU
  32. echo ========================
  33. wmic cpu get processorid
  34. echo Mac
  35. echo ========================
  36. wmic path Win32_NetworkAdapter where + ""PNPDeviceID like '%%PCI%%' AND NetConnectionStatus = 2 AND AdapterTypeID = '0'" + "get MacAddress " +
  37. "pause");
  38.             File.Close();
  39.         }