Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon




Login
Register

© winscripter.com
1998-2004







Script: Display CPU Identifier

Posted by on Monday, January 19, 2004 (PST)

Script: Reads registry key of the CPU identifier and displays it.

 

/**
 *    Script:   CPUIdent.js
 *    Purpose:  Displays the CPU Identifier stored in Registry
 *    Author:   Daren Thiel
 *    Date:     15 January 1999
 *    Web:     
http://www.winscripter.com
 *    Note:     Rename this file CPUIdent.js
 **/
/* Create Shell Object */
ws = WScript.CreateObject( "WScript.Shell" );
/* Read the Registry and store result in variable */
var regkey = "HKLM\\Hardware\\Description\\System\\CentralProcessor\\0\\VendorIdentifier";
var cpu = ws.RegRead( regkey );
/* Tell the user */
WScript.Echo( cpu );

Add Your Comment



WSH and ADSI Administrative Scripting

New Articles
  • List installed COM objects and associated ProgIDs
    Script: Lists all COM Objects and their associated ProgIDs (If available). Win32_ClassicCOMClassSetting

  • Script: File Rotator
    Script: Rotate files where the most current file has the lowest number in the archive. When files exceed the retention period, they are deleted. Typically used for log files, backups, etc..

  • Script: Create IIS Website and DNS record
    Script: Dan Casier sent me this script that will create a website and appropriate DNS record. The script is intended for Windows 2000 Server with local DNS and necessary DNS mof installed.


  • Winscripter   |  WSH   |  Forums   |  Downloads   |  Books   |  Links   |  Amazon