以下のサイトでSCCM 2012 SP1のMac Clientへのエージェント自動インストールスクリプトが紹介されていました。IIS上にMacクライアント用のインストールスクリプトを用意しておき、それをクライアント側で実行するだけでクライアントインストール~証明書登録が完了します。
- [How to perform an unattended install of the SCCM 2012 Client on Mac OS X | Flaming Keys](http://www.flamingkeys.com/2013/01/how-to-perform-an-unattended-install-of-the-sccm-2012-client-on-mac-os-x/)
上記サイトで公開されているスクリプトをそのまま実行すると、私の環境ではhdiutilコマンドが失敗しました。以下のように”cd ..”を追加することで正常に動作しました。
Detach the DMG
echo “Detaching DMG” cd .. cd .. #added this line. hdiutil detach $workingDirectory/mount > /dev/null