How to find COM+ application from process id

In my case Windows Server 2003 R2 SP2 was hosting a lot of in-house made COM+ applications. One of the COM+ applications was utilizing a lot of CPU power and Task Manager will not be of great help since it will show dllhost as process name. But, using Process Explorer will help to find the process id and service (for example I'll show how to find COM+ System Application, but the procedure can be used for any in-house made COM+ applications) :

 

The process id is : {02D4B3F1-FD88-11D1-960D-00805FC79235}. Using PowerShell we can find which COM+ application is running behind this process id :

$coma = New-Object -ComObject COMAdmin.COMAdminCatalog
$comapps = $coma.GetCollection("Applications")
$comapps.Populate()

Now $comapss has all com+ applications, and the output looks like this:

 
 
If your server is hosting a lot of COM+ like it was in my case, searching for particular process id can be done using (for example):
 
$comapps | ? { $_.key -like "*02D4B3F1-FD88-11D1-960D-00805FC79235*"}
 
I hope this procedure will help some else who is desperate to find out which COM+ application is not behaving as should.

Lync 2010 client setup failed

In my case I wanted to reinstall the Lync client 2010 from Windows 7 x86 workstation. After successfully uninstalling the Lync 2010 client from Programs and Feature, I've tried to run LyncSetup.exe again to install the client, but setup was failing with following message:
Files in Use Check Failed.
 
Rebooting the workstation didn't help the setup to continue, but running the lyncsetup.exe /uninstall first and starting the setup LyncSetup.exe again, enable to install the Lync 2010 client successfully.

How to check EMBG (Unique Master Citizen Number) using regex

In this post, I will share my implementation of how to check if some number looks like EMBG or Unique Master Citizen Number. For those of yo...