asked on
Dim oCatalog, oApplications, oApp, oComps, oComponent, i
Set oCatalog = CreateObject("ComAdmin.COMAdminCatalog")
Set oApplications = oCatalog.GetCollection("Applications")
oApplications.Populate
For Each oApp In oApplications
If oApp.Name = WScript.Arguments.Item(0) Then
Set oComps = oApplications.GetCollection("Components", oApp.value("ID"))
oComps.Populate
For i = oComps.Count -1 To 0 Step -1
Set oComponent = oComps.Item(i)
oComponent.Value("TXIsolationLevel") = COMAdminTxIsolationLevelReadCommitted
Next
oComps.SaveChanges
End If
Next
oApplications.SaveChanges