title: How do i set Identity of COM+ server type application to Network Service in power shell
body: <p>I need to do the following thing.</p>
  
  <p>Create com+ application -> set activation type to Server type-> set identity as Network service->Add user group under creater owner. </p>
  
  <p>I am able to set activation type,but i am not able to set identity and the further steps.
  I am new to com+ applications.
   the script i have written is as follows</p>
  
  <pre><code>$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog
  $apps = $comAdmin.GetCollection(“Applications”)
  $apps.Populate();
  
  $newComPackageName = “test7”
  
  $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”) = $newComPackageName
  $newApp1.value("Activation") = 1
  $newApp1.Value("identity").Access="NT AUTHORITY\system"
  $newApp1.Value("Password") = ""
  
  $saveChangesResult = $apps.SaveChanges()
  “Results of the SaveChanges operation : $saveChangesResult”
  }
  </code></pre>
  
  <p>The error i am getting is Identity value is not correct.
  Please help :)</p>