Reset all local account passwords and force restart

Is there a script or can a script be created which is able to get all local user accounts and reset the password on all these accounts and then force a restart?

Purpose of this script would be in the eventuality that a device is lost or stolen.

Or is there another script that can disable a lost or stolen computer / laptop?

Hi @cloughit,

Please try this script prepared by our script developers and provide your feedback
https://scripts.itarian.com/frontend/web/topic/lock-the-stolen-machine-with-screen-message

Kind Regards,
PremJK