Giter Site home page Giter Site logo

palantir / jamf-pro-scripts Goto Github PK

View Code? Open in Web Editor NEW
284.0 224.0 62.0 236 KB

A collection of scripts and extension attributes created for managing Mac workstations via Jamf Pro.

License: Apache License 2.0

Shell 100.00%
octo-correct-managed

jamf-pro-scripts's Introduction

jamf-pro-scripts

About

This is a collection of extension attributes and scripts intended for managing Mac workstations via Jamf Pro.

The extension attributes collect information such as:

  • version of installed application or component (when normal application inventory collection does not capture the desired information)
  • licensing status of installed software
  • current system or user settings

The scripts perform actions such as:

  • installing applications that aren't available in installer packages
  • uninstalling applications (all uninstaller scripts are templated from uninstaller-template)
  • adding or modifying user accounts
  • changing user or system settings

Usage

See Computer Extension Attributes and Running Scripts in the Jamf Pro Administrator's Guide for instructions on using these resources in your Jamf Pro installation.

Contributing

We welcome all contributions from the open source community to be submitted for review (in the form of GitHub pull requests). Feel free to fork this project and submit changes for approval, but please verify the following beforehand:

  • All scripts in this project are intended to run from a Jamf Pro install. We encourage repurposing these scripts as needed for your own environment (under the license terms), but will not store scripts here that do not function in Jamf Pro policies or extension attributes.
  • Please make every effort to follow existing conventions and style when modifying or adding scripts to maintain consistency. We realize that the code style used in this project may not exactly match what is seen in shell scripts elsewhere, but this is in an effort to improve legibility and understanding of script functionality for educational purposes. This means verbose commenting, extra whitespace, and quote-surrounded file paths wherever possible, as well as version number iteration and Created/Last Modified labels when a change is made.

Thank you so much for taking the time to contribute!

Reference Links

Jamf Pro

Apple enterprise mobility management product. https://www.jamf.com/products/jamf-pro/

Jamf Pro Administrator's Guide

Official documentation on Jamf Pro. http://docs.jamf.com/jamf-pro/administrator-guide/

MacAdmins Slack

A Slack channel of Mac administrators. Great way to reach out for questions about Mac management and participate in the community. https://macadmins.herokuapp.com/

Jamf Nation

The official community page for users of Jamf products. Lots of Jamf Pro sample scripts and configurations for inspiration in your own projects and work environment. https://www.jamf.com/jamf-nation/

License

This project is made available under the Apache 2.0 License.

jamf-pro-scripts's People

Contributors

mpanighetti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jamf-pro-scripts's Issues

Reset Safari.sh does not clear last session

After running the Reset Safari script, the option to "Reopen All Windows from Last Session" persists, and successfully reopens tabs from the last session. This is on Safari 17.4, macOS 14.4.

image

Recommended addition to file deletion

Suggest adding "/Library/Internet Plug-Ins/PepperFlashPlayer" to list of files to delete. Otherwise this doesn't remove the PPAPI version of Flash.

Homebrew Casks - Outdated.sh: Error: $PWD must be set to run brew.

Thanks for contributing Homebrew Casks - Outdated.sh.

When running as-is in an elevated Terminal session on macOS 14.2.1 (23C71), I observed the following error:

# sh /Users/dan/Downloads/Homebrew\ Casks\ -\ Outdated.sh 
<result>shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
Error: $PWD must be set to run brew.</result>

Changing Line 57 to the following seems to be working as expected:

brewOutdatedCask=$(/usr/bin/su \- "$loggedInUser" -c "'$brewPath' outdated --cask --quiet 2>&1")

# sh /Users/dan/Downloads/Homebrew\ Casks\ -\ Outdated.sh 
<result>Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
scnlib
==> New Casks
insomnium

You have 3 outdated formulae installed.</result>

Reset Safari.sh is incomplete

I recently had issues with safari unsuccessfully importing firefox history and favorites. It thought those files were last used january 1st 4001. After googling I noticed this was a common issue. The lines that saved me were :

rm ~/Library/Preferences/com.apple.Safari.plistls #This one seems to be already present in your script
defaults delete com.apple.Safari

Those should be added to the Reset Safari.sh.
EDIT : source.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.