Policy and scripts for creating a utexas inventory.plist file
A script has been created (GLOBAL-inventory-plist) that can be used to store information on endpoints for use by other polices/scripts, such as the department code, Nessus group, and the IT support org department code. The plist is created in the following location. /Library/Application Support/utexas/inventory.plist
The Script:
Additional policies and scripts can write or read information to this location to store and obtain values.
Setting up the policy
Log in to https://mdm.utexas.edu.
Navigate to Computers > Policies
Select New to create a new policy and give it a Display Name
Navigate to the Scripts section and select Configure.
Select Add next to the GLOBAL-inventory-plist script.
Next, Enter the parameter values for Department Code, Support Department Code, and Nessus Group. (NOTE: do not include the ,macos as shown in the image - just the department code)
Scope the policy to the appropriate systems and save the policy.
When the policy is run on the target systems, the values entered will be stored in the plist for later retrieval and use in scripts and policies.
Retrieving values from the plist
To retrieve values for use in scripts, you can use the following commands:
defaults read /Library/Application\ Support/utexas/inventory.plist 'Department Code’
defaults read /Library/Application\ Support/utexas/inventory.plist 'Support Department Code'
defaults read /Library/Application\ Support/utexas/inventory.plist 'Nessus Group’
ADDITIONAL NOTES:
Values can be saved as string variables if needed for easier use in scripts.
Adding additional values to the plist
If you would like to add your own key-value pairs to the plist, you can use a command in a script like the following example, where Data Classification is the key and Confidential is the value:
defaults write /Library/Application\ Support/utexas/inventory.plist ‘Data Classification’ ‘Confidential’
You can then retrieve the value of Data Classification with the following command:
defaults write /Library/Application\ Support/utexas/inventory.plist ‘Data Classification’
- Application and Global Settings
- Deploying Microsoft Defender to macOS devices
- Compliance Configuration and Extension Attribute
- EPM Core team audit of Jamf Pro server
- Global Configuration Policies
- Global Security & Compliance policies
- MAC Address Randomization: How it works and What IT needs to know
- macOS Packet Firewall
- Nessus Agent deployment to campus Jamf instances
- Application Usage Logs
- OS Patching: UT Macintosh Security Updates and Reboot Policy
- Automatic install of Code42 in Campus JAMF
- Upgrade to future macOS major releases
- Jamf - Site Administrator Policies
- Application installs and patching
- Installing UT-Track
- Centrally Managed iOS Password Standards
- Jamf - Server Maintenance and Update Process
- Jamf Connect
- Welcome to Jamf - Service Overview
- Common Configuration Profiles for Site Administrators
- Test and pilot
- Self Service Plus
- Jamf Connect changes