I've been doing some testing of the "Lock Computer" function (from the Inventory/Management screen) and it does not work as I would hope. I want to know if it's working "as expected" or if I'm doing something wrong or if there might be a bug which I should report somehow.
While my test machine (M1/Sonoma 14.7.2) is offline, I send the "Lock Computer" command. Of course I don't expect it to be effective until the machine is awake/networked; Jamf shows it as Pending.
Pretending I'm a computer thief & don't have the password, I wipe the machine, keeping it offline. But in order to install MacOS, I need to connect to the network and get past that pesky activation screen. Surprisingly, no problem: your Mac is activated! And installation of OS proceeds.
As installation proceeds, I check Jamf: the Lock command is still Pending. After OS installation completes, but before creating an account, the Lock command disappears from Pending, but it doesn't show under Management History at all (Completed, Pending or Failed); it simply vanishes. The computer is not locked.
If I send another "Lock Computer" command after the machine is up and running again (and online), the machine locks right away, as I would expect. But I'd also expect that if the machine is offline when I send the command, the machine would lock shortly after getting online, and would be unable to activate--but that's not what I'm seeing.