Jamf Pro
Powerful workflows for IT pros
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Jamf Pro 11.4.0 Beta is now available

Hello Jamf Nation! This release is in support of the Apple Spring release. We have several exciting new features including beta MDM support for Apple Vision Pro, Self Service initial app detection, Support Digital Market Act app restriction, and more...  View more

  • 959 Views
  • 1 replies
  • 0 kudos

Microsoft Teams (Work or School) removal script

Hey all, I have been using the tools at https://office-reset.com/macadmins/ for assisting with O365 and other office related issue. However, I was wondering if anyone has made a Microsoft Teams (Work or School) removal script? Office reset has a full...  View more

  • 223 Views
  • 5 replies
  • 0 kudos

Simple Bash script

I have a configuration profile that adds our VPN configuration. I then have a policy that kicks off this simple bash script. open “/System/Library/CoreServices/Menu Extras/vpn.menu” All this does is check the box for "Show VPN status in the menu bar"...  View more

  • 238 Views
  • 5 replies
  • 0 kudos

Hello Client Credentials, Goodbye Basic Auth!

Hello Jamf Nation! As many of you may have noticed, Jamf Pro version 10.49 introduced a new authentication mechanism for interacting with the Jamf Pro and Classic APIs. We're excited to provide a more modern and secure solution for API interactions! ...  View more

  • 882 Views
  • 2 replies
  • 0 kudos

Jamf Pro LAPS: Retrieving Password via Terminal

A new function for your ~/.zshrc to retrieve the managed Apple admin account password from Jamf ProBackgroundWith the enhancements included in the recently released Jamf Pro 10.49.0, we decided to take a more serious look at Jamf Pro LAPS.In doing so...  View more

lapss.png
  • 459 Views
  • 0 replies
  • 3 kudos

maxon script help!

Good Morning,Is anyone deploying/using Maxon. They provide a command file and a .plist file to automatically run the command file, but I am having a problem getting the command file to launch properly. I was thinking I could generate a login script, ...  View more

  • 1893 Views
  • 14 replies
  • 0 kudos

Logging to server via bash script

I thought I had already posted this, but it's no where to be found. I use a bash script which kills Zoom Rooms and forces a restart. Unfortunately this script doesn't leave any evidence of running, likely because it restarts before the script actuall...  View more

  • 1531 Views
  • 2 replies
  • 0 kudos

Create server log entry inside script

I have a bash script which restarts, after Killing Zoom Rooms via killall. shutdown -R now I use this script because for whatever reason a policy using Restart Options does not work, likely because Zoom Rooms blocks it. Unfortunately there is never a...  View more

  • 1275 Views
  • 1 replies
  • 0 kudos

Script to Change First Two Letters of Device Name

Hi All,I'm looking to create a script that I can run to change just the first two letters of a Devices name. We currently use Building-student(or teacher) and barcode (all under 15 characters for our AD bind). Since moving to one-to-one this year, I ...  View more

  • 2242 Views
  • 3 replies
  • 0 kudos

Invoking Rosetta2 For Specific Apps

Hi All, You know that 'Open using Rosetta' check box that we can turn on and off from a 'Get Info' window? Can anyone share how to accomplish that check box via Terminal? I'm scripting something and it would be super useful if I could include that in...  View more

  • 1173 Views
  • 1 replies
  • 1 kudos

Hiding default user folders using a launch agent

Hi all, Bit of an odd one. Our organisation needs to allow some aspect of local storage access to accommodate work on large files without constantly writing to network drives. They work on these files and then copy them to mounted AD drives.I want to...  View more

  • 2158 Views
  • 3 replies
  • 0 kudos

Install login certificate

Hello Everyone, I'm trying to push the login certificate and make it trusted automatically to 600 ++ MacBooks. Can anyone help to post a bash script?  View more

  • 1636 Views
  • 3 replies
  • 0 kudos

Setting Safari BACK to the default browser

Greetings friends, Wondering if anyone has a clever method for resetting Safari back to the default browser. Ideally we'd like to not lock this setting down, just change it when needed via a script, etc. Thank you  View more

  • 1656 Views
  • 2 replies
  • 4 kudos

Homebrew script password prompt workaround?

I understand the spirit of Homebrew being secure and permissions set to the owner of the device. I've developed a workflow around scripts that pull the latest apps via brew to newly deployed machines. I have run across a newish issue where when I try...  View more

  • 2384 Views
  • 1 replies
  • 0 kudos

Script Error

Good day everyone, I'm hoping that I can get a second set of eyes on this script. It is designed to check the status of Find My Mac, and works find locally, but it is erroring out when I run it through a Jamf Policy. Here is the script: !/bin/bash th...  View more

  • 2033 Views
  • 2 replies
  • 0 kudos

Run script in safe mode

We have a unique situation where SentinelOne is corrupting and disconnecting from the S1 portal. Because the client is not connected to the portal, the passphrase is not accurate to the client. We have a script which will uninstall the client in safe...  View more

  • 1008 Views
  • 0 replies
  • 0 kudos

erase-install.sh & DEPNotify

Hi guys, I'm doing some testing now to see if I can fit Graham Pugh's excellent erase-install.sh into our workflow for first boot - it works like a charm outside. how might I integrate this into a first boot routine using DEPNotify? Would I put a com...  View more

  • 1055 Views
  • 0 replies
  • 0 kudos

Delete Apple Apss

Here's the script for deleting Apple Apps !/bin/zsh echo "your admin password" | sudo -S -k rm -rf /Applications/iMovie.app -n 1 echo "your admin password" | sudo -S -k rm -rf /Applications/Numbers.app -n 1 echo "your admin password" | sudo -S -k rm ...  View more

  • 747 Views
  • 0 replies
  • 0 kudos

Bash Script

Dear All, I would like to create an executable bash script for the scripts below: sudo sh -c 'echo "Sandboxing Relaxed" >> /etc/cups/cups-files.conf'sudo launchctl stop org.cups.cupsd Can anyone help?  View more

  • 3529 Views
  • 4 replies
  • 0 kudos

Send Command or Script execution to the background

Greetings, I'm trying to run a policy from Jamf Pro Cloud in which the policy will either fire off a unix command and send it to the background and not wait for a response so Jamf can finish executing the rest of the policy. I tried using the Execute...  View more

  • 3504 Views
  • 3 replies
  • 0 kudos

folder redirect script

Hi all I have tried this script from jamf it works locally but not being pushed its an AD environment and it to redirect the music folder in documentsdoes anybody have experience of this !/bin/bash Get current logged in username CURRENTUSER=$(stat -f...  View more

  • 1122 Views
  • 1 replies
  • 0 kudos

Can't convert Admin users to Standard users

Im trying to convert a large number of admin accounts to standard accounts. On jamf nation, multiple people have been sharing this script below, but when I run it, it does not change any users from Admin to standard. Below is what I ran:with ###### b...  View more

  • 5746 Views
  • 13 replies
  • 0 kudos

Jamf Training

Hi all, I am completing the training courses for the Jamf Jamf 100 Course. I just need some help with completing a task and understanding the process What I have done is I have created a file in terminal on my Mac titled 'review' and its on my deskto...  View more

  • 1371 Views
  • 1 replies
  • 0 kudos

Scripts on DEP enrolled MacBooks

Hello ALL, New to Jamf School but stumbled on a major issue with DEP enrolled MacBooks. Self enrolled MacBooks run the scripts without an issue. We also can ran the scripts locally on the DEP MacBooks from a USB stick and worked, but pushing the scri...  View more

  • 1035 Views
  • 1 replies
  • 0 kudos
Labels