AFAIK, there is no Group Policy to prevent adding work account. However, you can try switching to Home edition which lacks some ability to add work/school account.
Preventing a Work or School account from being added to a Windows 11 workstation
I'm not trying to remove an account; I've seen a LOT of posts regarding how to remove an account, but not how to then PREVENT someone from adding a Work or School accounts under Settings Accounts. I'm the Global Administrator in my organization and have a shared desktop that everyone always tends to keep themselves logged into a limited Standard windows profile but then when you launch Office you can see that someone has left themselves logged in; allowing anyone to see or open their documents. So I'm constantly going to Accounts and removing them by Disconnecting them under Work or School account but people don't listen and keep logging into Office (or logging into their email through a browser) prompting me to always having to disconnect and yell at them. I sometimes back hand them on the stairs making them fall down and their shoes fall off.
Is there some Group Policy I can enable to prevent them from adding their work account or no? I don't want to enable some setting globally, essentially effecting every machine in my building, just one machine. I wish Microsoft made it a little easier to implement more granular restrictions without effecting other things, and having me resort to violence.... ;)
Thanks