JAMF | Scripts for Jamf Pro | Automation library

 by   kylejericson Shell Version: Current License: No License

kandi X-RAY | JAMF Summary

kandi X-RAY | JAMF Summary

JAMF is a Shell library typically used in Automation applications. JAMF has no bugs and it has low support. However JAMF has 3 vulnerabilities. You can download it from GitHub.

Everything JAMF I'm a Systems Engineer and I like to share my creations.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              JAMF has a low active ecosystem.
              It has 48 star(s) with 7 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              JAMF has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of JAMF is current.

            kandi-Quality Quality

              JAMF has no bugs reported.

            kandi-Security Security

              JAMF has 3 vulnerability issues reported (1 critical, 1 high, 1 medium, 0 low).

            kandi-License License

              JAMF does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              JAMF releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of JAMF
            Get all kandi verified functions for this library.

            JAMF Key Features

            No Key Features are available at this moment for JAMF.

            JAMF Examples and Code Snippets

            No Code Snippets are available at this moment for JAMF.

            Community Discussions

            QUESTION

            Running apple script from bash
            Asked 2021-Jan-12 at 11:27

            I have this apple script code that works fine from the Script Editor app:

            tell application "Finder" to delete ((POSIX file "/Applications/Symantec Solutions/Symantec Endpoint Protection.app") as alias)

            Now, I need to run that from my MDM solution (JAMF), so I'm trying to get it into a bash file as this:

            osascript -e "tell application \"Finder\" to delete (POSIX file \"/Applications/Symantec Solutions/Symantec Endpoint Protection.app\") as alias"

            but when run it from my editor (CodeRunner) it fails with: execution error: Not authorised to send Apple events to System Events. (-1743)

            I think it's related with the Privacy Preferences Policy Control but I cannot make it work.

            What I want to accomplish ultimately is that by running a script from my MDM I can get the same dialog that when I drag the app to the bin: "The application “Symantec Endpoint Protection” is hosting system extensions. These extensions will be removed if you continue." which I don't get if I just rm -rf the whole app.

            Sorry if I can't be any clearer. Any clues?

            ...

            ANSWER

            Answered 2021-Jan-11 at 19:59

            Script Editor is (by default) authorized to apple events to other applications. If you want to run an AppleScript that controls other apps from some different context, you have to grant permission to that new context to control other apps. You do this by adding the controlling application to the 'Accessibility' section of System Preferences ➦ Security & Privacy ➦ Privacy.

            This gets a bit dicy when you shift contexts a lot. For instance, you seem to be using CodeRunner to execute a shell script to execute OSAScript, which might get a security violation at any level. Try giving permissions to CodeRunner and see if that clears things up.

            Source https://stackoverflow.com/questions/65665161

            QUESTION

            Selenium--Python Not Taking Input From Tkinter Entry Widget--TypeError: object of type 'function' has no len()
            Asked 2020-Aug-19 at 03:41

            Good evening all,

            Hope you are doing fine. I have an issue and I hope you could shed some light.

            ERROR:

            ...

            ANSWER

            Answered 2020-Aug-19 at 03:41

            I don't have selenium to test this, but as long as your launch site overall logic was correct, this should fix it. All I did was reformat most of what you wrote and change 2 parts.

            first part
            This was wrong: lambda: GUI._mac_mini_name_entry(self)
            This is right: self.mini_entry.get()

            second part
            All of this was wrong or strange.

            Source https://stackoverflow.com/questions/63478460

            QUESTION

            Beginner Python and API - How to read data?
            Asked 2020-Aug-18 at 22:21

            I am new to Python and APIs. I have an API at work that I can access and get details for computers.
            At this point I just want to try a very basic thing for practice and print Computer Name and IP Address.
            Using a Python book I have with a chapter on API I am trying the following as a test and get 200 response and the length result = 10. So initial connection is working.

            ...

            ANSWER

            Answered 2020-Aug-18 at 22:21

            Looking at the structure of the response_dict you posted (which, perhaps you should try to put in an editor that will format it nicely for you to help you parse it), the info you're looking for (computer name and IP) is in a list under "computers", which is a key under "advanced_computer_search" in your response. All the stuff before that (which is most of what you pasted here) I think is a description of the objects you're querying.

            To access the list, you can call response_dict["advanced_computer_search"]["computers"].

            To print the info from the first record:

            Source https://stackoverflow.com/questions/63476090

            QUESTION

            check for installed configuration profiles failing to recognize matching names
            Asked 2020-May-02 at 12:11

            This is part of a much larger diagnostic tool I am building. I manage Macs at work and I need to confirm that configuration profiles are all installed or display a list of the ones missing. Scripting is not my strong suit but I am trying to learn. After days of trial and error, I was finally able to get code working, but I am getting output that doesn't make sense. The comparison check I have that works perfectly for most of the profiles, is returning some false failures. I know it is really my failure, but I am not a computer, so there is a detail I am missing, clearly.

            Here is a rundown of the code...

            $profileList is a control array containing the names of configuration profiles I want to ensure are present. I created this list by running the command:

            ...

            ANSWER

            Answered 2020-May-02 at 12:11

            I did have a look at your script, and re-wrote it to this:

            Source https://stackoverflow.com/questions/61411105

            QUESTION

            Remove the automatically started apps on Mac
            Asked 2020-Feb-20 at 07:50

            I've used "sudo jamf removeframework" to remove MDM.

            But there is the McAfee icon stay on the status bar after booting the Mac as follows:

            I typed the following commands to find the McAfee related files and find out some are displayed in red color.

            ...

            ANSWER

            Answered 2020-Feb-20 at 07:50

            Download CleanMyMac for free. Launch the app. Open Optimization tab. Click on Login items. From the list of apps, disable the ones you don’t need on startup. Done! Hope this helps;

            check this for more info, https://macpaw.com/how-to/remove-startup-items-in-osx

            Source https://stackoverflow.com/questions/60315064

            QUESTION

            iOS: How to set the device serial number via application configuration in airwatch?
            Asked 2019-Dec-31 at 09:43

            In JAMF, you can use "App Configuration" to tell the device it's own serial number using something like this:

            ...

            ANSWER

            Answered 2018-Jun-08 at 16:21

            The AppConfig variable for serial number on AirWatch is {DeviceSerialNumber}. Here's the full list:

            Source https://stackoverflow.com/questions/50492795

            QUESTION

            Increase timeout when prompting using osascript from bash script
            Asked 2019-Nov-16 at 02:41

            I'm working on some bash scripting for use in JAMF in my environment. My scripting skills include: googling other peoples scripts, clipping out pieces of those and pasting them into my own script. Then eating the paste. I'm having a bit of a bizarre issue with a piece of AppleScript that runs within a bash script. Original script follows:

            ...

            ANSWER

            Answered 2019-Nov-15 at 23:07

            You need line breaks in the script, just as in the regular AppleScript. You're also missing end timeout, end tell, and the seconds units.

            Source https://stackoverflow.com/questions/58885736

            QUESTION

            Passing an variable FROM applescript to a bash script
            Asked 2019-Aug-13 at 12:55

            So I am embedding an AppleScript inside a bigger bash script, I want the dialog to open for the user ask them questions, accept those variables and then pass them to the bash script to run further commands. However, it doesn't seem to be passing the variables along into my bash script and is in a constant loop. I need to do it this way because of the delivery method I will be using. I know I could accomplish the same result with a read command.

            I have tried looking up this issue and found a lot of answers but either none of the work or they are working with an environment larger then what I need. This link https://discussions.apple.com/thread/2512634 is the closest thing I found to what I am doing, and I almost have it verbatim, but still, it just doesn't pass them and is in a constant loop

            ...

            ANSWER

            Answered 2019-Aug-13 at 06:45

            Scratching what I said before: full reset.

            Looking at the full script that you edited in, I'm going to suggest a rewrite that does away with the recursive do shell script entirely. It's not much of a change, really; rather than pass the 'floater number' on as an argument, we're going to pass it back as a result. To do that:

            1. Delete line 12 (the NUM="$1" line)
            2. Rewrite the whole AppleScript section like so:

            Source https://stackoverflow.com/questions/57467380

            QUESTION

            Command read in bash with typing on start some characters ready to use backspace
            Asked 2019-Aug-12 at 13:43

            I'm learning in bash while my internship and I want to use "read" command in a different way like normal it used to be. I'll try my best to describe what I'm trying to do, but my English isn't perfect.

            What I want it is while typing in server address I don't want for every time type in https://. What I already did is like you see:

            ...

            ANSWER

            Answered 2019-Aug-12 at 12:21

            I am assuming that your option is via a variable value. In my example, I will use a variable.

            Source https://stackoverflow.com/questions/57460875

            QUESTION

            How to iterate through an array to populate buttons for AppleScript dialog?
            Asked 2019-Jul-06 at 13:58

            I am having issues trying to figure out how I can iterate through an array that I am using to populate labels for buttons of an AppleScript dialog box.

            I currently have an array of 13 objects, which are departments for our jamf instance. An AppleScript dialog box has a max of 3 buttons you can assign. So I am trying to iterate through my array to show 2 options at a time, and the third button being "Next" to get to the next 2 options and so forth.

            I also want to cover the situation for if the user has to go all the way to the last option, that it adjusts the buttons accordingly such as leaving the last dialog to have either 1 or 2 buttons if that is how many options are left.

            I have set the array with the 13 items, then tried a while loop, with a nested if statement to check to see if there are 1 or 2 remaining options and to remove the extra buttons.

            ...

            ANSWER

            Answered 2019-Jul-06 at 13:58

            I think you're using the wrong approach to this. Try a choose from list dialog instead:

            Source https://stackoverflow.com/questions/56912281

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install JAMF

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/kylejericson/JAMF.git

          • CLI

            gh repo clone kylejericson/JAMF

          • sshUrl

            git@github.com:kylejericson/JAMF.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link