<p>This only works for the currently logged-in user, but I discovered some undocumented commandline arguments for ms-teams.exe (I’m using New Teams) that successfully change presence:</p>
<pre><code class="lang-auto">--set-presence-to-available
--set-presence-to-dnd
--set-presence-to-be-right-back
--set-presence-to-away
--set-presence-to-offline
--reset-presence
</code></pre>
<p>I actually found these by disassembling the binary, there’s 0 reference to these on the Google-able internet so far. It’s possible they will be disabled in future.</p>