Skip to main content

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! :)

@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


@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.


@fernandez.payen Hi,
What about the self service you have about "no macos updates pending". How it that working ?


@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.


@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.


@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.


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.


@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

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.


@txhaflaire I was wonder what your "Updating Adobe CC Applications" script does and if you are open to sharing it.


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.


@fredrik.virding

Hi

Temporary Admin, How are you running this?

Many thanks in advance!!!


@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.


Bumping this thread. Would love tho get some great examples of how you are using Self Service in your environment today.


If possible where can I get those applications?



I am new to Jamf is it possible to know how and where to get these applications or packages?

 




we currently do not have any optimization applications in self-service

 


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  


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  


Nice, any of the scripts on GitHub?


Nice, any of the scripts on GitHub?


Currently, no, but I can share it with you next week. Which one you are interested?


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  


Hi ib-ittech,

I was wondering if you are on the MacAdmins Slack.  I have a few questions regarding some of your Self Service options that I might like to learn from you.


Wrong thread ¯\\_(ツ)_/¯ 


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  


Is it wrong of me to ask those posting these to also post the tools used (scripts, etc) here for others?
Seems the likely thing to happen is they're going to ask anyways... 😊

But I agree, this is a good thing to continue on...


  • @Jeff_Owen Yes, I am on Mac Admins under the name Darko Didak. Feel free to ping me
  • @scottb I can post all scripts, but then we will have large threads. Do you use Mac Admins maybe? I can share scripts with you over Slack 
  • @MatG Do you also maybe use Mac Admins?