views:

118

answers:

1

Hi All,

Is it possible to programmaticaly configure COM+ service.

I need to do the following using C# or any script

  1. Open Administrative Tools -> Component Services
  2. Expand Components Services -> My Computer -> COM+ Applications
  3. Right Click HyperV Environment Manager(COM+ service name) andselect Properties.
  4. Click on Pooling & Recycling tab
  5. Under Application recycling, set Memory Limit(KB) value to 262144.
  6. Click OK
  7. Right Click HyperV Environment Manager(COM+ service name) and select ShutDown
  8. Right Click HyperV Environment Manager(COM+ service name) and select Start

It will be great if you could guide me or send me the code snippet.

Thanks in advance.

Regards, Sreejith Rajan

+1  A: 

You should use HyperV's WMI to do this. There are many examples on the web, such as this one.

Eran Betzalel