changing existing COM+ applications identity via vbs script
Asked Answered
G

1

2

How to changing existing COM+ applications identity via vbs script. like Authentication level = none and identity to this user via vb scripts. found many posting on add/delete com+ applications but not changing existing one. please help

Godson answered 9/11, 2010 at 12:17 Comment(0)
T
3

Here's a script that retrieves all of the applications, finds the one with the name you are interested in and sets the Identity, Password and Authentication to Connect. For a full list of Application properties see Applications Collection under COM+ Administration Collections.

Const COMAdminAuthenticationDefault   = 0
Const COMAdminAuthenticationNone      = 1
Const COMAdminAuthenticationConnect   = 2
Const COMAdminAuthenticationCall      = 3
Const COMAdminAuthenticationPacket    = 4 
Const COMAdminAuthenticationIntegrity = 5
Const COMAdminAuthenticationPrivacy   = 6

Dim catalog
Dim applications
Dim application

Set catalog = CreateObject("COMAdmin.COMAdminCatalog")
Set applications = catalog.GetCollection("Applications")

Call applications.Populate

For Each application In applications

    If (application.value("Name")  = "AppName") Then

        application.Value("Authentication") = COMAdminAuthenticationConnect
        application.Value("Identity") = "domain\account"
        application.Value("Password") = "Password"

        Call applications.SaveChanges
    End If
Next
Thinnish answered 10/12, 2010 at 16:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.