@jbourdon!Thank you for posting this script. I am trying to run it
against my JSS (9.99.0) and it is coming back that it cannot find the
device every time. After inspecting all the calls, if I run curl -k -s
-u user:pass
https://jssurl/JSSResource/mo...
Thanks! I just setup 30 devices, and all but two worked without
installing the Trust Profile first. The two that gave the invalid cert
error work just fine now that I installed the trust profile first. Saved
me some headache.