title: How to modify COM+ applications from powershell
body: <p>I am automating the creation of a web server. An application is created for me, but I need to manually change the Identity of a COM+ Application to run as a specific user. </p>
  
  <p><img src="https://i.stack.imgur.com/tR64v.png" alt="enter image description here"></p>
  
  <p>Being a linux admin with little experience with powershell, I'm in over my head. It looks like there is an API to modify COM+ applications. </p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/ms679173(v=vs.85).aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/ms679173(v=vs.85).aspx</a></p>
  
  <p>From <a href="https://stackoverflow.com/questions/16293666/how-do-i-set-identity-of-com-server-type-application-to-network-service-in-powe">this stackoverflow question</a>, I've gotten this far in modifying the application</p>
  
  <pre><code>$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog
  $apps = $comAdmin.GetCollection(“Applications”)
  $apps.Populate();
  </code></pre>
  
  <p>I am able to see my application in the list by typing in this command</p>
  
  <pre><code>$apps
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/zBbBM.png" alt="enter image description here"></p>
  
  <p>Is it possible to modify the foobar application Identity from powershell? </p>