Microsoft KB Archive/305758

= PRB: Computer Name Is Returned Under LocalComputer Collection =

Article ID: 305758

Article Last Modified on 2/24/2002

-

APPLIES TO


 * Microsoft COM+ 1.5, when used with:
 * Microsoft Windows XP Professional

-



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 &quot;My Computer&quot; 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(&quot;COMAdmin.COMAdminCatalog&quot;) oCat.Connect &quot;TESTCOMPUTER&quot; 'Replace with any Windows XP computer name. Set oCLocalComputerCol = oCat.GetCollection(&quot;LocalComputer&quot;) oCLocalComputerCol.Populate Set oCLocalComputerItem = oCLocalComputerCol.Item(0) MsgBox oCLocalComputerItem.Value(&quot;Name&quot;) 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

Keywords: kbprb kbcompluscatalog KB305758

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.