The jamf binary comes with a lot of cool little features that you can use to script things quickly, because JAMF has already built things to help you. We’ll look at two really quick. The first is the deleteAccount verb which, surprisingly, deletes accounts. With that verb, you’ll use the -username operator to define a given user that you’d like to remove. That username is defined as the short name (or what dscl shows) of a given user. For example, if I wanted to remove the user rorygilmore, I’d run the following command: /usr/sbin/jamf deleteAccount -username rorygilmore You can then provide a popup on the screen that you completed that…
-
-
Import ARD Information Using jamf
It’s pretty common to use keys for ARD for shuttling data back and forth. In an environment where you’re using one tool to image computers and another tool to then perform patch management, the Computer Information fields in ARD are a place where you can keep this information and not run the risk of it getting overwritten with a software update. In the past few weeks we’ve looked at importing information into DeployStudio, using a csv file and from the command line. We also looked at populating those ARD fields with scripts, using an example of populating the information with the username or computername and then keying administrative users from…