Posted on 12-20-2021 12:57 PM
Hey everyone - total beginner here with very little scripting knowledge. I am currently in the middle of trying to remove Symantec from all our macs and have the script file to do it, however I need to install this file to a specific location on each mac and then run it. How would I do this? I tried to use composer and create a before and after image and then make that into a pkg but it didn't work and it did not add the file to my test machine in the location I wanted. I know there is a simple way to do it but cannot find a step by step guide online
Solved! Go to Solution.
Posted on 12-20-2021 01:20 PM
Thanks so much I will try this! Sounds simple enough! I need to try installing it locally first because I get the same error as the poster in this thread when just adding it in as a script to run from a policy -
The first suggestion was to try to place it locally and run it so wanted to see if that may work for me before trying his final solution (also though would be a great way to learn how to place files locally on macs)
Posted on 12-20-2021 01:14 PM
Just curious, but do you have an idea of why the script needs to be added to a specific location? Not that it's all that hard to do mind you. I'm just curious. I don't use Symantec, so I don't know much about why a removal script would need to necessarily be run from a specific path. Or maybe it's not the script but some "config" file for Symantec to use?
Anyway, how you can do this in Composer is by following these simple steps.
In short, you don't need to run a before/after snapshot for something like this, since you know specifically what you want to capture. Snapshots are really only good for when you don't know what it is that needs to be captured, so you let the application figure it out (more or less) for you.
Hope that helps.
Posted on 12-20-2021 01:20 PM
Thanks so much I will try this! Sounds simple enough! I need to try installing it locally first because I get the same error as the poster in this thread when just adding it in as a script to run from a policy -
The first suggestion was to try to place it locally and run it so wanted to see if that may work for me before trying his final solution (also though would be a great way to learn how to place files locally on macs)
Posted on 12-20-2021 02:25 PM
This worked great for me, however I am having an issue now dragging it into JAMF admin from Composer - whenever I drag it in, it just bounces back to composer...it looks to be happening to all my packages in composer. Any idea what could cause this?
Posted on 12-20-2021 03:04 PM
Yeah, the problem is you don’t drag things directly from Composer into Jamf Admin. You have to build out packages or disk images from Composer, and then drag those files into Jamf Admin.
Posted on 12-20-2021 03:27 PM
Ah yes that makes sense, thanks a lot for all your help I really appreciate it!