Target Disk Mode with Custom Options

majedian21
New Contributor III

Is there a way to do batch target disk mode in Casper Imaging, but also put in custom settings, like under the advanced tab?

<context>
We populate the ARD text field 1 with our district asset tag ID number for each computer, but we do not know how to image a batch of computers using Target Disk Mode (name match by serial number in a .csv file) and update this field at imaging time. Our alternative is to update System Preferences > Sharing > Remote Managment > Options manually after each computer finishes imaging.
</context>

Running Casper Suite 9.3

2 REPLIES 2

ACousino
New Contributor II

Have you looked at running this as a script during the imaging process?

jleomcdo
Contributor

I user a script as part of my workflow to do this.

#!/bin/bash

# DESCRIPTION:
# Script to set the computer info in the ARD agent

# REQUIREMENTS:
# Must be run as root

# AUTHOR:
# robert@kvicktajm.se

# Examples if you want to set hostname at spare slot - check first to find what you use as identifiers in your network:
# scutil --get HostName
# scutil --get LocalHostName
# scutil --get ComputerName
# networksetup -getcomputername
# hostname

# Note: A variable="" leave what's already set in agent so use variable=" " to *clear* a field
I1="Perrigo Build 00048502.02" # Spare
I2=
I3=
I4=

# You can also use:
# I3="echo $(sysctl hw.model | awk '{ print $2}')"

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -computerinfo -set1 -1 "$I1" -set2 -2 "$I2" -set3 -3 "$I3" -set4 -4 "$I4"

#EOF