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
@echo off | |
REM -------------------------------------------------------------------------------- | |
REM Enable Auto login | |
REM -------------------------------------------------------------------------------- | |
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_DWORD /d 1 /f | |
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /t REG_SZ /d "YOUR WINDOWS USER" /f | |
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /t REG_SZ /d "USER PASSWORD" /f |
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
# make local "server" directory | |
SERVERDIR="/macsvr1" | |
if [ ! -e ${SERVERDIR} ]; then | |
mkdir ${SERVERDIR} | |
mkdir ${SERVERDIR}/Backburner | |
chmod -R 777 ${SERVERDIR} | |
else | |
echo "${SERVERDIR} already exsits, skipping." | |
fi |
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 | |
## postinstall | |
#!/bin/sh | |
echo "disable auto updates ASAP" >> /var/log/jamf.log | |
defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool NO | |
defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool NO | |
defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool NO | |
defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdateRestartRequired -bool NO |
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/bash | |
# | |
# | |
# Created by John Mahlman, University of the Arts Philadelphia (jmahlman@uarts.edu) | |
# Name: com.uarts.DEPprovisioning.facstaff | |
# | |
# Purpose: Install and run DEPNotify at enrollment time and do some final touches | |
# for the users. It also checks for software updates and installs them if found. | |
# This gets put in the composer package along with DEPNotofy, com.uarts.launch.plist, | |
# and any supporting files. Then add the post install script to the package. |
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/bash | |
# Get the logged in user | |
CURRENTUSER=$(/usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");') | |
# Setup Done File | |
setupDone="/var/db/receipts/com.uarts.provisioning.done.bom" | |
JAMFBIN=/usr/local/jamf/bin/jamf | |
if pgrep -x "Finder" \ | |
&& pgrep -x "Dock" \ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>GroupName</key> | |
<string>wheel</string> | |
<key>InitGroups</key> | |
<false/> | |
<key>Label</key> | |
<string>com.uarts.launch</string> |
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/bash | |
JAMFBIN=$(/usr/bin/which jamf) | |
CURRENTUSER=$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");') | |
# Install DEPNotify first (set this up in your jamf server of course) | |
$JAMFBIN policy -event install_depnotify | |
DNLOG=/var/tmp/depnotify.log | |
# Setup DEPNotify prefs and starting GUI |
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/bash | |
JAMFBIN=$(/usr/bin/which jamf) | |
CURRENTUSER=$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");') | |
# Install DEPNotify first (set this up in your jamf server of course) | |
$JAMFBIN policy -event install_depnotify | |
DNLOG=/var/tmp/depnotify.log | |
# Setup DEPNotify |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Asset Tag</key> | |
<string>ua14lap1337</string> | |
<key>Assigned User</key> | |
<string>jmahlman</string> | |
<key>Computer Serial</key> | |
<string>XXXXXXXXXX</string> |
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 | |
if [ ! -f "/usr/local/bin/appleloops" ]; then | |
echo "Installing Apple-Loops-Install script from JSS" | |
/usr/local/jamf/bin/jamf policy -event apple-loops-installer | |
caffeinate -i /usr/local/bin/appleloops --mute-progress-bar --deployment $4 --pkg-server http://url.to.folder/appleloops | |
if [ ! -f "/usr/local/bin/appleloops" ]; then # Did the install work? | |
echo "Unable to install Apple-Loops-Install script, aborting!" | |
exit 1 | |
fi |
NewerOlder