<html>
<head>
<style type="text/css">
<!--
body { font-variant: normal; line-height: normal; margin-bottom: 1px; margin-right: 4px; margin-top: 4px; margin-left: 4px }
p { margin-bottom: 0; margin-top: 0 }
-->
</style>
</head>
<body>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Lucida Grande">Here is what I came up with, and I think I will have casper run it on every client machine. Not all of our machines are on mobile accounts at the moment so if it looped through all user accounts it would work. Thus far, this is what I wrote, what do you all think?</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>#!/bin/sh</i></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>#loop through user accounts and enable plain text for AFP</i></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>file=com.apple.AppleShareClient.plist</i></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>for file in /Users/*/Library/Preferences/*</i></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>if [[ -e $file ]]</i></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>then defaults write com.apple.AppleShareClient "afp_cleartext_allow" ‑bool YES </i></font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i></i></font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>else echo "no file found"</i></font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i></i></font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>fi</i></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>done</i></font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Lucida Grande" size="3" color="#0033ff"><i>exit</i></font><font size="3" face="Lucida Grande"></font> </p>
<br> <br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Lucida Grande">If any of you think of a better way I would gladly like to hear it.</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Lucida Grande">Thanks,</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Lucida Grande">Tom</font> </p>
<p style="margin-top: 0; margin-bottom: 0">
<br>
<br>
>>> Clinton Blackmore <clinton.blackmore@westwind.ab.ca> 03/31/09 9:13 AM >>><br> </p>
<div>
<p style="margin-top: 0; margin-bottom: 0">
I've attached and pasted FixOfficeDefaults.sh, which does just the sort of thing you are looking for.  IIRC, I never did get it to show an error in the Casper logs (although you can see that it tries to); but, it does find the user and run defaults for them. </p>
</div>
<div>
<p style="margin-top: 0; margin-bottom: 0">
<br>
</p>
</div>
<div>
<p style="margin-top: 0; margin-bottom: 0">
Cheers, </p>
</div>
<div>
<p style="margin-top: 0; margin-bottom: 0">
Clinton Blackmore </p>
</div>
<div>
<p style="margin-top: 0; margin-bottom: 0">
<br>
</p>
</div>
<div>
<br>
</div>
</body>
</html>