Monthly Archives: August 2012

Create a COM+ Application with Powershell

$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog $apps = $comAdmin.GetCollection(“Applications”) $apps.Populate(); $newComPackageName = “MyFirstCOMPackage” $appExistCheckApp = $apps | Where-Object {$_.Name -eq $newComPackageName} if($appExistCheckApp) { $appExistCheckAppName = $appExistCheckApp.Value(“Name”) “This COM+ Application already exists : $appExistCheckAppName” } Else { $newApp1 = $apps.Add() $newApp1.Value(“Name”) = … Continue reading

Posted in Software Development | Leave a comment