Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for prodid.vbs

(view source code of prodid.vbs as plain text)

  1. ' ProdID.vbs,  Version 1.01 for WSH 5.6
  2. ' Display Windows' Product ID
  3. '
  4. ' Usage:  CSCRIPT //NoLogo ProdID.vbs
  5. '
  6. ' Written by Rob van der Woude
  7. ' http://www.robvanderwoude.com
  8.  
  9. Set Shell = CreateObject("WScript.Shell")
  10.  
  11. ProductID = Shell.RegRead("HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProductId")
  12.  
  13. WScript.Echo(vbCrLf & "ProductID=" & ProductID)
  14.  

page last modified: 2024-04-16; loaded in 0.0079 seconds