jamf | JAMF Plugin for GLPI
kandi X-RAY | jamf Summary
kandi X-RAY | jamf Summary
Syncs data from JAMF Pro to GLPI.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get available commands
- Add 2 - 1 version 1 . 0 version 1
- Import a music .
- Finalizes the sync
- Show information for a single jamf item
- Get rights for JSS account
- Get the list of available commands
- Shows the profile form
- Get the jamf item for a given item
- Show the JSSF
jamf Key Features
jamf Examples and Code Snippets
Community Discussions
Trending Discussions on jamf
QUESTION
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:59Script 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.
QUESTION
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:41I 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.
QUESTION
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:21Looking 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:
QUESTION
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:11I did have a look at your script, and re-wrote it to this:
QUESTION
ANSWER
Answered 2020-Feb-20 at 07:50Download 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
QUESTION
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:21The AppConfig variable for serial number on AirWatch is {DeviceSerialNumber}
. Here's the full list:
QUESTION
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:07You need line breaks in the script, just as in the regular AppleScript. You're also missing end timeout
, end tell
, and the seconds
units.
QUESTION
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:45Scratching 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:
- Delete line 12 (the
NUM="$1"
line) - Rewrite the whole AppleScript section like so:
QUESTION
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:21I am assuming that your option is via a variable value. In my example, I will use a variable.
QUESTION
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:58I think you're using the wrong approach to this. Try a choose from list
dialog instead:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jamf
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page