Issue Remote Lock Command via Script

skoonin
New Contributor

We are looking into if it's possible to have a mac get remotely locked at the end of imaging. This way the lock code needs to be entered before the computer can be used. Anyone have any idea if there is a way to issue a remote lock command via a script? Or even via the JSS API?

thanks!

1 REPLY 1

pblake
Contributor III

I believe it is possible via the API

Look at doing a POST on /computercommands/command/{command} command would be DeviceLock.
See screenshot.

You can also see your API options by going to your JSS and adding /api to end of it.

4bbe3bd7088442858b3eb2295f6ae46d