Posted on 01-31-2019 02:54 AM
Hi everyone! I've been slowly building out our self service with software from VPP, scripts for updating and some help desk tools.
I was hoping you all could share some of the scripts and other tools you use for your users. There have been some older threads showing off their tools but they are a little sparse on how to make them work. One great one I saw, but have no idea how to get it to work, was an emergency backup to Google Drive.
I would love to see some scripts for updating Adobe CC and some other nifty scripts for helpdesk. Attached is what I have so far.
Cheers everyone! :)
Posted on 10-23-2019 07:02 AM
Could anyone share what they use for the reset or Fix Keychain scripts? I just started my jump start and am building out self service. Any tips or suggestions are welcome.
Posted on 10-23-2019 07:20 AM
@scottb where is the
$USERcoming from?
Posted on 02-26-2020 10:45 AM
@emily Can you possibly share the Gatekeeper script or the link where you got the Gatekeeper script? We have devs that would need that sometimes. As long as it is approved by our security first. Thanks.
Posted on 02-26-2020 11:38 AM
@Stubakka
My script to update keychain passwords
https://www.jamf.com/jamf-nation/discussions/33601/update-keychain-password-script
Posted on 02-28-2020 01:41 PM
@wildfrog
How does "Allow Printer Administration" policy work?
Thanks
Posted on 02-28-2020 01:52 PM
Lots of pretty icons.
Can someone post their scripts or links to:
Optimize My Mac
Allow Printer Administration
Reset NVRAM
Computer Maintenance
Display Computer Information
Collect Diagnostic Logs
Optimize My Computer
... Toolbox Maintenance
Posted on 06-06-2020 11:16 AM
Thanks to all the posts above, this is what is set up in my environment!
Posted on 06-07-2020 04:46 PM
@emily Hello, What does your fix parental control policy do? I have found some issues after getting some computers off AD.
Posted on 06-08-2020 09:02 AM
@fernandez.payen if possible can you please share the script for Screen sharing and also please what dose Remote Support dose in Self service ?
thanks a lot in advance
Posted on 06-08-2020 01:36 PM
#!/bin/sh
sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
/usr/sbin/dseditgroup -o edit -a (ADMIN_ACCOUNT) -t user com.apple.access_ssh
Remote Support installs a QuickSupport application and launches it. Also provides a prompt telling the user to provide the ID and password to IT to authorize the remote session.
Posted on 06-10-2020 03:07 PM
@fernandez.payen Could you share the script for Google chrome clean up?
Posted on 06-10-2020 10:59 PM
#!/bin/sh
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# ABOUT THIS SCRIPT
#
# Written by: Fernandez Payen
# Created on: April 24, 2020
#
# Purpose: Closes application "Google Chrome". Locates all cache
# and cookies directly from saved location on mac and
# deletes them. Once completed, it relaunches Google Chrome.
#
# IMPORTANT: Google Chrome must be downloaded and installed.
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# USER VARIABLES
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Get current user
CURRENT_USER=`ls -l /dev/console | awk '{ print $3 }'`
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# MAIN PROCESS
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Close Google Chrome
killall "Google Chrome"
# Removes cache and cookies
rm -R /Users/$CURRENT_USER/Library/Application Support/Google/Chrome/Default/Cookies
rm -R /Users/$CURRENT_USER/Library/Caches/Google
# Relaunches Google Chrome
cd /Applications
open Google Chrome.app
Posted on 06-18-2020 02:18 PM
Where can you find those nice icons?
Posted on 06-21-2020 11:31 PM
Posted on 06-27-2020 12:28 PM
@ neilrooney_old
Hi
How did you setup software update in self service?
on the back end?
many thanks!!!
Posted on 07-21-2020 05:02 AM
This is mine. What does "Fix my internet" do? @fernandez.payen
Posted on 07-21-2020 12:26 PM
@djquazzi Curious what your Maintenance, Internet Speed Test and Should I restart policies do?
Posted on 07-21-2020 05:11 PM
Do any of you all have actual usage data on these policies? UX and adoption should be somewhat data driven though usage data. I am just curious because I am finding out my employees rarely use self service, or they don't use it at the rate I would expect. We do have a lot of automation in place though, so that is a factor for us.
Posted on 07-21-2020 11:03 PM
@strayer
Maintenance
User caches, User Saved Application State, System Caches, Turns Off Open windows after login, Flush DNS, Restarts,
Internet Speed Test
https://github.com/danielnovello/Jamf/blob/master/speed_test.sh
Should I restart
If machine has been up for X days, inform and restart
https://github.com/danielnovello/Jamf/blob/master/should_I_restart.sh
Posted on 07-22-2020 01:28 AM
@tlarkin I wish jamf would make it easier to get stats from Self Service for the exact same reasons. We seem to maintain a lot of Sefl Service items but find users are fairly ignorant to it.
Posted on 07-22-2020 04:10 AM
@tlarkin We used to require login to SS. I would then capture the AccessLogs in splunk. That was when we had an On-Prem JSS. Now that we are cloud, we've lost access to that kind of data.
Posted on 07-22-2020 08:26 AM
We ship policy webhooks to our data platform, and self service is barely used at my Org. If people want an app they typically just go download it. They also want IT to just patch it. Looking at the data by policy ID (since jamf does not include self service == True/False in the hook) it is very low for the total number of policies ran. To give context though, we actively try to patch non running apps at every check in. So, obviously the automation is going to run a lot more than self service, but the number of self service policy execution is very low.
Posted on 07-22-2020 08:31 AM
@ddcdennisb logging in doesn't mean usage though. I can log in and look for something and not find it and just go somewhere else and get it. It is at least something though
Posted on 07-24-2020 09:09 PM
@djquazzi Fix My Internet
#!/bin/sh
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# ABOUT THIS SCRIPT
#
# Written by: Fernandez Payen & Abel Santana
# Created on: April 27, 2020
#
# Purpose: Closes VPN connection. Deletes all DNS Servers and
# Search Domains. Executes an IP Release/Renew.
#
# IMPORTANT: A network connection is required to execute. To be
# executed if user is experiencing proxy or ip error
# message.
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# MAIN PROCESS
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#Force Quit Tunnelblick
sudo killall "$VPN"
#Delete all DNS Servers
sudo networksetup -setdnsservers Wi-Fi empty
#Delete Search Domains
sudo networksetup -setsearchdomains Wi-Fi empty
#Release DHCP
sudo ifconfig en0 down
#Renew DHCP
sudo ifconfig en0 up
I am still trying to a way to cache this script or make it available when a network connection is spotty. I'm gonna eventually try to make this script an executable within all users "/Documents" folder so it is easily accessible.
Posted on 07-27-2020 01:42 AM
@fernandez.payen
Hi,
What about the self service you have about "no macos updates pending". How it that working ?
Posted on 07-27-2020 05:02 AM
@tlarkin I have a lot of problems here encouraging Self Service too. The pandemic is opening people's eyes to it more though. We share a problem in that I do a lot for the Mac users automagically instead. My positioning with them is that "Self Service allows me to install the things you want IT's way without having to have one of us come over and interrupt your classroom or take control of your screen at the worst time." I've seen an uptick in usage over the past two years, but folks are really used to me doing x or y from them. I'd love it if you come across any tricks at encouraging the Self Service mentality.
Posted on 07-27-2020 06:56 AM
@blackholemac I think I'm in the same boat as it's just like our kb site and helpdesk portal where users would rather call or email someone than open something from their system to carry out a task.
All I can do is try to make the process of using those things as simple as possible and try to demonstrate the advantages to it. It works for a few but many are very stubborn to it. Unfortunately it's usually older users who seem to be set in their ways.
One thing I'm doing to encourage Self Service use is by requiring it in the Dock. I wanted it originally as a menubar item and have a feature request in with Jamf to have as an option but it didn't get much traction among those who frequent here. I'm also pushing for the Windows admins to promote the use of SCCM's Software Center more. I figure if our help desk talks things up more about how the users can accomplish more as if it's an App Store, then that should help. It's a slow painful process though as there's not much buy in. The windows folks tend to want to use Software Center for their own use rather than the users for some reason.
Posted on 07-27-2020 08:54 AM
@blackholemac culture is a thing too for us. I was deploying some binaries for a specific group of employees and I was just going to self service it. I was told by engineering managers that I needed to automate it, because engineers should not have to stop what they are doing and fumble around in an app to get software that IT should just provide. I 100% agreed with this manager and I have automated those type of installs ever since.
So, really my company just barely uses self service and they all prefer IT to automate things versus them having to waste their time clicking a bunch of buttons in an app. I honestly do not blame them, as IT Engineering teams get paid to do this stuff.
Posted on 07-28-2020 06:56 AM
for the NVRam clearing I just made a policy that runs this command.
nvram -c
I just added to self-service and set it up for a reboot after. This works for us.
Posted on 10-16-2020 12:39 PM
@MikeF how are you running the nvram -c command in self service? We're getting this Result of command:
nvram: Error clearing firmware variables: (iokit/common) not permitted
Posted on 10-16-2020 01:07 PM
This was pretty easy for the self-service part
on files and processes tab i put on the execute command nvram -c
I then schedule a reboot if needed and the system goes down right away for an authenticated reboot.
I have never bothered to check the logs as what i wanted to clear was the find my mac setting and this was all i checked. It was clear
I have also told my techs when thy are setting a mac up for re-image we also format the drive here. After formatting they open the terminal and run that command without a reboot. That always cleared the setting. My log files just report running the policy. I did not finds any errors.
The only thing i scheduled the reboot for is the setting will not actually change in the NVRAM without it.
Posted on 10-19-2020 08:58 AM
@txhaflaire I was wonder what your "Updating Adobe CC Applications" script does and if you are open to sharing it.
Posted on 10-20-2020 01:02 AM
Thought i share some stuff i run.
Some Forms via Microsoft Forms in Bookmarks, works like a charm.
Some printer reset scripts.
Flushing cache and cookies for Chrome.
And Temporary Admin as well.
Posted on 10-21-2020 11:24 AM
@fredrik.virding
Hi
Temporary Admin, How are you running this?
Many thanks in advance!!!
Posted on 10-22-2020 12:25 AM
@PE2000 Hi!
Im running this one:
https://soundsnw.wordpress.com/2020/01/26/zsh-script-to-grant-standard-users-temporary-admin-rights/
Located that post and did some testing. Have tried other versions too, but i found that this version works best for our environment. Doing some extra tweaks on it now to make it a bit smarter.
Posted on 10-21-2021 01:55 PM
Bumping this thread. Would love tho get some great examples of how you are using Self Service in your environment today.
Posted on 11-14-2021 01:03 PM
If possible where can I get those applications?
Posted on 11-15-2021 07:12 AM
Posted on 11-15-2021 09:16 AM
we currently do not have any optimization applications in self-service
Posted on 10-13-2023 03:41 AM
Maybe to start this theme again. I can see the last post is from 2021, so there are probably more ideas now.
Here are our Self Service