Maximize the benefits of Multi-User Access Management by using Jamf Pro to automate the deployment of the company.config file on macOS systems. Automating this process ensures consistent configuration across devices, simplifying IT management in enterprise environments. This guide provides step-by-step instructions for deploying the company.config file with Jamf Pro, covering script creation, policy setup, and deployment verification. By following these instructions, administrators can streamline the process and ensure reliable outcomes.
Contents
Uploading the Script to Jamf Pro
You may find this YouTube tutorial from Jamf Pro helpful: Lesson 25: Scripting and Jamf Pro | Jamf 100 Course.
- Log in to Jamf Pro
- Access your Jamf Pro account using your credentials.
- Navigate to the Scripts Section
- Click on the Settings icon (gear icon in the top-right corner).
- Select Computer Management > Scripts.
- Create a New Script
- Click New to add a script.
- In the General tab, name the script (e.g., Create Company Config File).
- Paste the following script into the Script tab:
-
#!/bin/bash
# Define the target directory and file
TARGET_DIR="/Library/Application Support/Capture One"
CONFIG_FILE="company.config"
# Create the directory if it doesn't exist
if [ ! -d "$TARGET_DIR" ]; then
mkdir -p "$TARGET_DIR"
echo "Created directory $TARGET_DIR"
fi
# Create the company.config file if it doesn't exist
if [ ! -f "$TARGET_DIR/$CONFIG_FILE" ]; then
touch "$TARGET_DIR/$CONFIG_FILE"
echo "Created empty file $TARGET_DIR/$CONFIG_FILE"
else
echo "$CONFIG_FILE already exists in $TARGET_DIR"
fi
exit 0 - Click Save
Deploying the Script via Policy
You may find this YouTube tutorial from Jamf Pro helpful: Lesson 25: Scripting and Jamf Pro | Jamf 100 Course.
- Create a New Policy
- Navigate to Computers > Policies.
- Click New to create a new policy.
- Configure the General Section
- Name the policy (e.g., Deploy Company Config File).
- Set the Trigger to Recurring Check-in.
- Set Execution Frequency to Once per user per computer.
- Attach the Script
- In the Scripts section, click Configure.
- Select the script you created in Step 1 and click Add.
- Set the Priority to After to ensure it runs after other tasks.
- Set the Scope
- In the Scope section, select the target group of devices (e.g., Lab Computers).
- Click Done and then Save.
Verifying Deployment
You may find this YouTube tutorial from Jamf Pro helpful: Lesson 25: Scripting and Jamf Pro | Jamf 100 Course.
- Check Deployment Status in Jamf Pro
- Select a computer from the target scope.
- Go to Management > History to confirm the Deploy Company Config File policy ran successfully.
- Alternatively, Verify on a Target Computer
- Remotely access a computer or visit a physical device.
- Navigate to /Library/Application Support/Capture One.
- Confirm the presence of the company.config file.
Comments
0 comments
Please sign in to leave a comment.