0% found this document useful (0 votes)
32 views5 pages

Scripts Jamf

The document contains a property list configuration for a locked desktop picture and a shell script that checks for the existence of the specified image file. It also includes scripts to retrieve the computer's serial number, set the computer name using Jamf, update the inventory, and disable web proxy settings for Wi-Fi. The scripts are written in both zsh and bash and are intended for macOS systems.

Uploaded by

mubicua789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views5 pages

Scripts Jamf

The document contains a property list configuration for a locked desktop picture and a shell script that checks for the existence of the specified image file. It also includes scripts to retrieve the computer's serial number, set the computer name using Jamf, update the inventory, and disable web proxy settings for Wi-Fi. The scripts are written in both zsh and bash and are intended for macOS systems.

Uploaded by

mubicua789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

<?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>locked</key>

<true/>

<key>override-picture-path</key>

<string>/Library/Desktop Pictures/Tapiz.jpg</string>

</dict>

</plist>

#!/bin/zsh

if [ -e /Library/Desktop\ Pictures/Tapiz.jpg ]

then

echo "<result>True</result>"

else

echo "<result>False</result>"

fi

#!/bin/zsh
# Get Serial Number

serialNumber=$( /usr/sbin/system_profiler SPHardwareDataType |


/usr/bin/awk -F": " /"Serial Number"/'{ print $2 }' )

# Set name

jamf setComputerName -name "$serialNumber"

# Update inventory

jamf recon

exit 0

#!/bin/bash

# Set proxy to Off

networksetup -setwebproxystate "Wi-Fi" off

networksetup -setsecurewebproxystate "Wi-Fi" off

networksetup -setsocksfirewallproxystate "Wi-Fi" off

exit 0

You might also like