Posted on 11-10-2015 06:26 AM
Is there a way, in JSS, to get a list of how many local user accounts there are for a computer. I know that this is collected in inventory. I can look at each computer separately, but would like a summary list of all student computers. FY!, our student computers should have a Standard user account and a hidden Admin account. If there are more than 1 account, they have somehow added an additional account, which needs to be cleaned.
Thank you.
Posted on 11-10-2015 07:28 AM
This has actually been discussed on a number of threads and feature requests in the past. The best way to do this is to set up an Extension Attribute that captures either all local accounts, or checks on the status of all accounts and reports them.
Take a look at this thread for some example EA scripts written by a number of us. One of them may fit your needs.
https://jamfnation.jamfsoftware.com/featureRequest.html?id=2065
Posted on 11-10-2015 09:37 AM
You can send the following command to each system, the output of which would be the list of non-system accounts:
dscl . list /Users | grep -v '_|daemon|nobody|root'
Alternatively, you could run this as a line count to simply get a number for quick comparison or conditional logic:
dscl . list /Users | grep -v '_|daemon|nobody|root' | wc -l