title: How configure a new DCOM RunAs User with Powershell
body: <p>I know how to read my current DCOM configuration:</p>
  
  <pre><code>$dcom = Get-WMIObject -Class Win32_DCOMApplicationSetting -Filter 'Description="MyComp123"'
  </code></pre>
  
  <p>It works fine.
  <strong>But how can I create and assign a new RunAs (Identity) user?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/KrL9W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KrL9W.jpg" alt="identity option"></a></p>