1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Configure COM+ and DCOM Objects Identity via VB Script

Discussion in 'Windows XP' started by adley, Nov 10, 2007.

Thread Status:
Not open for further replies.
  1. adley

    adley Thread Starter

    Joined:
    Nov 7, 2007
    Messages:
    1
    Peace all,

    I am in a need to create a VB Script that can be run under XP and 2003 to configure the Identity information for COM+ and DCOM objects. These objects will be configured to use "This user" option in their Identity tabs.

    I tried using this script (found it somewhere) but it's not working (setting up user "test" as the credentials used for these objects):

    Code:
    Dim appID
    appID = "{7B4E1F3C-A702-11D2-A336-00C04F7978E0}"
    
    Dim catalog, root
    Set catalog = CreateObject("COMAdmin.COMAdminCatalog")
    Set root = catalog.Connect("myhost")
    
    Dim appsCol
    Set appsCol = catalog.GetCollection("Applications")
    appsCol.PopulateByKey Array(appID)
    
    For Each obj in appsCol
      obj.Value("Identity") = "test"
      obj.Value("Password") = "test"
      Call appsCol.SaveChanges
    Next
    Any ideas?

    Thanks in advance,
    =adley=
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/650049

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice