Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
talkingmoose / PopulateMobileDeviceAssetTags.sh
Last active August 29, 2015 14:20
Find all JSS mobile devices without asset tags and populate the Asset Tag field from a list
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Written by: William Smith
#
# Last updated: April 21, 2015
#
# Purpose: Searches a Casper JSS for mobile device assets
# with empty Asset Tag fields and populates those fields from lists
@talkingmoose
talkingmoose / GetAssetTagViaSerialNumber.sh
Last active August 29, 2015 14:20
Retrieve JSS asset tags for list of serial numbers
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Written by: William Smith
#
# Last updated: May 7, 2015
#
# Purpose: Retrieves list of asset tags from list of iOS serial numbers.
# Serial numbers should be in a serialnumbers.txt file in the same
<?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>kSubUIAppCompletedFirstRunSetup1507</key>
<true/>
</dict>
</plist>
<?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>kSubUIAppCompletedFirstRunSetup1507</key>
<true/>
</dict>
</plist>
<?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>kSubUIAppCompletedFirstRunSetup1507</key>
<true/>
</dict>
</plist>
<?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>HowToCheck</key>
<string>Manual</string>
<key>LastUpdate</key>
<date>2015-08-09T01:04:03Z</date>
</dict>
</plist>
<?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>kSubUIAppCompletedFirstRunSetup1507</key>
<true/>
</dict>
</plist>
@talkingmoose
talkingmoose / Add contact birthdays to calendars.scpt
Created September 11, 2011 20:16
Add Outlook for Mac contact birthdays to calendar
tell application "Microsoft Outlook"
set contactList to every contact
set theYear to text returned of (display dialog "Enter the calendar year for new birthday reminders." default answer year of (current date) with title "Which year?" with icon 1)
if theYear as integer ≤ 1904 or theYear as integer ≥ 2039 then
display dialog "You must specify a year between 1904 and 2039." with icon stop with title "Error!" buttons {"Cancel"}
end if
repeat with aContact in contactList
@talkingmoose
talkingmoose / dittoPayloadToUsers.sh
Created February 20, 2012 15:52
Shell script to ditto Apple package payload to user home folders and user template
#!/bin/sh
## postflight
copyPayloadToAllUsers() {
# Enter a path to a logfile.
LOGFILE="/path/to/file.log"
# Copy the payload file(s) to all existing user folders.
@talkingmoose
talkingmoose / CommunicatorSetup-1.0.sh
Created March 7, 2012 22:52
Shell script to configure Microsoft Communicator user name and email address
#!/bin/sh
########################### About this script ##########################
# #
# Purpose: Populates user name and email address settings #
# for Communicator 2011 for Mac. This script resides #
# in /Library/talkingmoose/Scripts and is launched #
# by launch agent net.talkingmoose.CommunicatorSetup.plist. #
# #
# Created by William Smith #