This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
: ' | |
------------------------ | |
Penn State MacAdmins | |
------------------------ | |
Performs the following: | |
- Installs the latest version of macOS by using the current copied | |
version from munki | |
Sources: | |
- https://scriptingosx.com/2019/09/get-current-user-in-shell-scripts-on-macos/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
: ' | |
---------------------- | |
Penn State MacAdmins | |
---------------------- | |
Performs the following: | |
- Captures the current password of your local admin | |
if you know it and then changes the password to | |
the FirstPassKey | |
Notes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/psupython | |
# pylint:disable=C0103 | |
'''TeamViewer 15 PostInstall Script''' | |
# This will add our congifuration ID to the application | |
# bundle so that any custom host module visual modifications | |
# will be downloaded from the site for each user. It will | |
# also create a launchagent that will keep the TeamViewer | |
# client running when a user is logged in even if they exit. | |
# Joshua D. Miller - [email protected] | |
# August 13, 2020 - The Pennsylvania State University |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/psupython | |
# pylint:disable=C0103, W0703, E0611, W0107 | |
'''TeamViewer 15 PreInstall Script''' | |
# This will configure our initial settings for | |
# TeamViewer version 15 and prepare for install | |
# Joshua D. Miller - [email protected] | |
# August 13, 2020 - The Pennsylvania State University | |
from os import listdir, path, remove | |
from shutil import rmtree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
'''Get LAPS password for AD Computers''' | |
# ################################################################# | |
# This script will allow an admin user with | |
# the proper domain crednetials to get a LAPS | |
# password form Active Directory. | |
# ################################################################## | |
# Original script by barteardon | |
# https://github.com/bartreardon/macscripts/blob/master/lapssearch | |
# Updated script using pyObjC: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pylint: disable=E0611, E1101, E0602, C0103 | |
''''Fix 802.1x When Using Config Profiles and PEAP-MSCHAPV2 or EAP-TLS''' | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# This script will find the system profile and determine whether it is attached | |
# to each interface and report that information. This is formated to be used | |
# with jamf as an Extension attribute. Expected output would be as follows: | |
# || en3 - True || en4 - False || en5 - False || | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pylint: disable=E0611, E1101, E0602 | |
''''Fix 802.1x When Using Config Profiles and PEAP-MSCHAPV2 or EAP-TLS''' | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# This script will find the system profile that is attached to one ethernet | |
# interface from our configuration profile and then copy it to all other | |
# ethernet interfaces so that other ethernet interfaces can be used instead | |
# of just the FirstActiveEthernet at time of profile installation. This issue | |
# is still an issue as of 10.12.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pylint: disable=C0103, W0612, E1101, E0602, E0611 | |
# pylint: disable=W0101, W0110, W0141 | |
''''Report presence of 802.1x User Identity Preference for EAP-TLS''' | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# This script will determined if the KeyChain item that needs created | |
# for 802.1x EAP-TLS to work on all systems with multiple items is | |
# present. This information is then reported to jamf. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pylint: disable=C0103, W0612, E1101, E0602, E0611 | |
# pylint: disable=W0101, W0110, W0141 | |
''''Fix 802.1x When Using Config Profiles and EAP-TLS''' | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# This script will determine the profile ID that was used when | |
# installing the 802.1x Ethernet Identity preference and make | |
# a copy of the keychain entry to be used as a user identity preference | |
# so that any Ethernet can be used when a user is logged in. As of 10.12.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pylint:disable=C0103, E0611, E1101, W0703 | |
'''Power User Preferences (With Location Services)''' | |
# This policy will unlock certain system prereference | |
# panes in macOS to allow users who do not have administrative | |
# privileges to access them. | |
# Joshua D. Miller - [email protected] | |
# The Pennsylvania State University | |
# August 31, 2016 - Converted from Bash | |
# April 4, 2017 - Updates Location Services and tested with 10.12.4 |
NewerOlder