Hello,
I was looking for a command that I could use to verify that a user is logged onto their machine before a policy is run (as opposed to a machine being on, but sitting at the login screen)
I want to make sure that they are logged in so they are sure to get the messaging that this policy has run.
I am imagining something like the following:
If any user is logged in (except for our 2 admin accounts whose name I can specify)
Execute jamf policy -trigger "custom trigger"
Else quit.
Does anyone have an idea on the scripting for this?
Thanks very much,
Matt Oclassen
Desktop Systems Specialist
salesforce.com
