Skip to content

Using Encrypted Strings

Joshua Roskos edited this page May 27, 2021 · 6 revisions

This guide will provide step-by-step instructions for configuring the logCollection-encStrings.sh in Jamf Pro using Script Parameters along with Encrypted Strings via a Self Service Policy.

  1. Download the Latest Version here
  2. Add Script to Jamf Pro
    • Create New Script
    • Assign Name
    • Assign Category
    • Configure Script Parameter Labels

Add Script to Jamf Pro

  1. Generate Encrypted String
    • Open your Internet Browser and go here
    • Copy Lines 8-16
    • Launch Terminal
    • Paste copied lines from above and hit enter
    • Enter the following command: GenerateEncryptedString "yourPasswordHere"
    • Leave Terminal Open

Add Script to Jamf Pro

  1. Create a Policy
    • Assign Policy Name
    • Select Trigger & Frequency
    • Remove Restart Payload optional
    • Attach Script
    • Configure Script Parameters
      • Jamf Pro URL: https://instanceName.jamfcloud.com
      • Jamf Pro User: A Jamf Pro user with the necessary privileges
      • Jamf Pro Pass (Encrypted): The encrypted string generated for the above user in step #3
      • Log Files: Unix path to log files you want collected
        • Recommended: /private/var/log/install.log* /private/var/log/jamf.log /private/var/log/system.log*
        • Tips
          • Separate multiple log files with a space
          • Add an * to the end to capture rolled over logs
      • Salt: This is the salt you generated above in step #3
      • Passphrase: This is the passphrase you generated above in step #3
    • Configure Scope
    • Configure Self Service tab optional

Create Policy in Jamf Pro

Thats it!

Clone this wiki locally