.NETGURU
COM+ Application Administration
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Tres Henry
I need to change the identity (user name and password) that a COM+
application is running under on a remote machine. Does anyone have an
example of remotely administering COM+ applications in .NET?

Thanks,

-Tres
Reply to this message...
 
    
Tomas Restrepo \(MVP\) (VIP)
Tres,

[Original message clipped]

Do you really need to use .NET for this? Although you can certainly use COM
interop with ComAdmin.dll, It's just a simple 20- lines VBScript, which to
me, seems like a preferable choice for quick tasks like this ;)

Here's a short sample:

Dim appID
appID = "<Guid of the Application>"

Dim catalog, root
set catalog = CreateObject("COMAdmin.COMAdminCatalog")
set root = catalog.Connect("<server name or localhost>")

Dim appsCol
set appsCol = catalog.GetCollection("Applications")
appsCol.PopulateByKey Array(appID)

for each obj in appsCol
obj.Value("Identity") = "<domain and user name>"
obj.Value("Password") = "<password>"
next

appsCol.SaveChanges

--
Tomas Restrepo
Click here to reveal e-mail address

Reply to this message...
 
    
Tres Henry
Tomas Restrepo (MVP) wrote:
[Original message clipped]

Yeah, I ended up using comadmin.dll through interop. I would have done
it this way to begin with but I didn't realize that COMAdminCatalogClass
has a Connect() method that allows you to configure remote applications.
Still, shouldn't this be doable through WMI? I can't believe there
isn't a Win32_COMPlusApplication class or something like that.

Thanks for your help though!
Reply to this message...
 
    
Klaus H. Probst
I don't see why you'd need to complicate something that is complicated
enough by adding it to WMI.

The admin interfaces are hard to figure out but they work fine as they are,
and as you said, work perfectly well in remote mode.

--
Klaus H. Probst, MVP
http://www.vbbox.com/

"Tres Henry" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification