![]() ![]() You might also find me speaking about it at JNUC2021. I’ve tried to make the README file as comprehensive as possible so go give that a read and grab a copy on Github Not only does it allow you to quickly put together the commands and options in the process it builds your help system and quickly structures your code with each command requiring it’s own function.Īs Scriptorium leverages git adding a git module to zsh and the git lens extension to Visual Studio Code adds even further benefits. Select the Scripts payload and click Configure. 1 ACCEPTED SOLUTION easyedc Valued Contributor II Options Posted on 01-13-2022 10:36 AM +1 for throwing your script into a policy with a custom trigger and just running that via sudo jamf policy -event TRIGGERNAME There used to be a sudo jamf runscript command, but it was clunky and hard to use. Use the General payload to configure basic settings for the policy, including the trigger and execution frequency. Click the Computers tab at the top of the page. Python’s argparse library makes it incredibly easy. Running a Script Using a Policy Log in to Jamf Pro. I’d never built a script with an extensive command line interface. A Python script that uses a combination of two directories and two git repositories to provide versioning, tracking, and backup while adding an easier to use interface for editing the scripts. I know, I have a problem, I’m working on it. Yes, I know, spending a chunk of your spare time writing 750 lines of Python (it was actually 950 till I did some serious refactoring) rather than a day doing it manually might seem a little, well, silly. What’s an easy way to rename a dozen scripts and edit twenty? There really isn’t one so instead of doing it by hand I decided I wanted a software system that made it easy. The Script menu already contains many useful scripts, but you can also add. Select the Scripts payload and click Configure. You can show the Script menu in the menu bar to make it easy to access your scripts. For the Triggers, we’ll use Recurring Check-in and Ongoing so that the script runs whenever it is scoped going forward. Click New and fill in the Name and Description appropriately. Use the General payload to configure basic settings for the policy, including the trigger and execution frequency. Jamf-Script-DisableRoot.sh Lastly, we’ll create a Policy to run the script when needed. ![]() ![]() A little while ago I became extremely annoyed by a bunch of scripts in my Jamf Pro instance that weren’t properly named and didn’t have proper author comments. Running Scripts Using a Policy In Jamf Pro, click Computers at the top of the sidebar. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |