PRB: Computer Name Is Returned Under LocalComputer Collection (305758)



The information in this article applies to:

  • Microsoft COM+ 1.5, when used with:
    • the operating system: Microsoft Windows XP

This article was previously published under Q305758

SYMPTOMS

On Microsoft Windows XP, when you use the LocalComputer collection of the COM+ administration objects, the value of the Name property is the computer name of the computer that is specified in the Connect method of the COMAdminCatalog object instead of the string "My Computer" as in Windows 2000 and Windows NT 4.0.

STATUS

This behavior is by design.

MORE INFORMATION

When you run the following VBScript from a Windows XP-based computer, you see the remote computer name in the message box:
Dim oCat
Dim oCLocalComputerCol
Dim oCLocalComputerItem

set oCat = CreateObject("COMAdmin.COMAdminCatalog")
oCat.Connect "TESTCOMPUTER" 'Replace with any Windows XP computer name. 
Set oCLocalComputerCol = oCat.GetCollection("LocalComputer")
oCLocalComputerCol.Populate
Set oCLocalComputerItem = oCLocalComputerCol.Item(0)
MsgBox oCLocalComputerItem.Value("Name")
           
Set oCLocalComputerItem = Nothing
Set oCLocalComputerCol = Nothing
Set oCat = Nothing
				
Make sure that you modify the Connect string to point to a Windows XP-based computer.

NOTE: If you do not run this script from a Windows XP-based computer, you receive the following error message:
Error: The server catalog version is not supported
Code: 8011042C

Modification Type:MajorLast Reviewed:2/24/2002
Keywords:kbCOMPlusCatalog kbprb KB305758