I want to avoid that Skype for Business (Lync) is changing also my custom status to "away" after locking the screen. Is there any way to adjust the (Script) from that website in a way that an additional registry entry is modified?
Just let me know if you need some more details.
Thank you!
There is no way to stop this behaviour.
Remember Lync is a softphone, if the machine is locked it, Lync assumed you can't answer the phone, so it sets the presence to indicate that you are most unlikely to answer the phone (or reply to a message in general).
If you really want it to not want to change, you can:
I would personally think that you will just have to live with this behaviour.