Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon




Login
Register

© winscripter.com
1998-2004







List installed COM objects and associated ProgIDs

Posted by on Wednesday, April 13, 2005 (PST)

Script: Lists all COM Objects and their associated ProgIDs (If available). Win32_ClassicCOMClassSetting
/** 
 * Script:  ListCOM.js
 * Purpose: Lists all COM objects registered on a machine
 *          and their associated ProgIDs (If Available).
 * Author:  Daren Thiel
 * Date:    13 April 2005
 * Note:    Rename this file PackingListHTML.js
 * Web:    
http://www.winscripter.com
 *          Copyright Daren Thiel 2005 
**/
ListCOM( "DTXP" );

function ListCOM( computer )
{
 var wmistr = "winmgmts:{impersonationLevel=impersonate}!\\\\";
 wmistr += computer + "\\root\\cimv2";
 
 var wmi = GetObject( wmistr );
 
 var query = "SELECT * FROM Win32_ClassicCOMClassSetting"; 
 var com = wmi.ExecQuery( query );
 
 var ecom = new Enumerator( com );
 for( ; !ecom.atEnd(); ecom.moveNext() )
 {
  var icom = ecom.item();
  print( "name   : " + icom.Caption );
  print( "progid : " + icom.ProgID );
  print( "" ); 
 }
}

function print( msg )
{
 WScript.Echo( msg );
}

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