<html>
  <head>
    <style type="text/css">
      <!--
        body { line-height: normal; font-variant: normal; margin-left: 4px; margin-bottom: 1px; margin-top: 4px; margin-right: 4px }
        p { margin-bottom: 0; margin-top: 0 }
      -->
    </style>
    
  </head>
  <body style="margin-left: 4px; margin-bottom: 1px; margin-top: 4px; margin-right: 4px">
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">I have a search and destroy policy that searches out files by type or by name and deletes them. &nbsp;You don&#39;t need a script as it is a one liner command. &nbsp;Keeping it simple is the way to go in my humble opinion. &nbsp;If you want to get specific you can script it out and make it more robust.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">Here are some examples:</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">/usr/bin/find /Users/&#42; -name &quot;full_filename.extension&quot; -print -delete </font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">That will search the /Users folder and delete all files to test it out just use the -print option first and leave out the delete option. &nbsp;Then once you confirmed it works add back in the delete. &nbsp;Working for a public school system I get to search and destroy some creative user created content that gets passed around from time to time.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">If you are looking to delete a certain file type across the board you can add to the find command with regex and since home folder synchronizing is not perfect it syncs things that are not suppose to be there&#44; and then I have to play janitor on the file servers. &nbsp;An example of that is:</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">/usr/sbin/find -x -E /path/to/share -regex &#39;.&#42;&#92;.&#40;m&#91;4po&#93;&#91;34agpv&#93;&#124;mpeg&#124;aac&#124;asf&#124;wmv&#41;&#39; -print -delete</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">That deletes pretty much any file with those extensions in the file name&#44; MP3&#44; MP4&#44; AAC&#44; mpeg&#44; so on and so forth. &nbsp;So that should give you something to work with and with the find command set the path to a narrow scope&#44; otherwise it will just search the root of the drive and that can take forever to run</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Lucida Grande">Hope that helps</font><br><br><br>___________________________<BR>Thomas&nbsp;Larkin<BR>TIS&nbsp;Department<BR>KCKPS&nbsp;USD500<BR><a href="mailto:tlarki@kckps.org">tlarki@kckps.org</a><BR>blackberry:&nbsp;&nbsp;913-449-7589<BR>office:&nbsp;&nbsp;913-627-0351<BR><BR><BR><BR><br><br>&gt;&gt;&gt; Martin van Diemen &lt;martin-van-diemen@g-star.com&gt; 01/05/09 12:35 AM &gt;&gt;&gt;<br>The version that has been installed is 6.01<br><br>Kind Regards&#44;<br><br>Martin van Diemen<br><br>t &#43;31&#40;0&#41; 205677744<br>__________________<br><br>G-Star International B.V.<br>www.g-star.com<br><br><br><br>________________________________<br>From: Ryan Harter &lt;rharter@uwsp.edu&gt;<br>Date: Fri&#44; 2 Jan 2009 21:27:43 &#43;0100<br>To: Martin van Diemen &lt;martin-van-diemen@g-star.com&gt;<br>Cc: Miles Leacy &lt;miles.leacy@themacadmin.com&gt;&#44; &lt;casper@list.jamfsoftware.com&gt;<br>Conversation: &#91;Casper&#93; Delete com.adobe.mediabrowser.plist<br>Subject: Re: &#91;Casper&#93; Delete com.adobe.mediabrowser.plist<br><br>What version of Casper are you using&#63;&#160;&nbsp;There was a bug in 6.0 that caused &#36;3 to not be set&#44; Casper 6.01 fixed this.<br><br><br>Ryan Harter<br>UW - Stevens Point<br>Workstation Developer<br>715.346.2716<br>Ryan.Harter@uwsp.edu &lt;mailto:Ryan.Harter@uwsp.edu&gt;&lt;mailto:Ryan.Harter@uwsp.edu&gt;<br><br><br>On Jan 2&#44; 2009&#44; at 4:50 AM&#44; Martin van Diemen wrote:<br><br>Hi Miles&#44;<br><br>Thanks for your reply. I&#39;ve tried to make use of the &#36;3 variable but the strange thing is that it&#39;s empty. We&#39;re making use of Active Directory. Could this have something to do with it&#63;<br><br>Best wishes for 2009 to you all&#33;<br><br>Kind Regards&#44;<br><br>Martin van Diemen<br><br>t &#43;31&#40;0&#41; 205677744<br>__________________<br><br>G-Star International B.V.<br>www.g-star.com &lt;<a href="http://www.g">http://www.g</a>-star.com&gt;&lt;<a href="http://www.g">http://www.g</a>-star.com&gt;<br><br><br><br>________________________________<br>From: Miles Leacy &lt;miles.leacy@themacadmin.com&gt;<br>Date: Wed&#44; 31 Dec 2008 14:57:34 &#43;0100<br>To: Martin van Diemen &lt;martin-van-diemen@g-star.com&gt;<br>Cc: &lt;casper@list.jamfsoftware.com&gt;<br>Conversation: &#91;Casper&#93; Delete com.adobe.mediabrowser.plist<br>Subject: Re: &#91;Casper&#93; Delete com.adobe.mediabrowser.plist<br><br>username is &#36;3<br><br>&#36;1 is the mount point of the target drive<br>&#36;2 is the computer name<br><br>&#36;4 through &#36;11 are configurable.<br><br>----------<br>Miles A. Leacy IV<br><br>&#63; Certified System Administrator 10.4<br>&#63; Certified Technical Coordinator 10.5<br>&#63; Certified Trainer<br>Certified Casper Administrator<br>----------<br>voice: 1-347-277-7321<br>miles.leacy@themacadmin.com<br>www.themacadmin.com &lt;<a href="http://www.themacadmin.com">http://www.themacadmin.com</a>&gt;&lt;<a href="http://www.themacadmin.com">http://www.themacadmin.com</a>&gt;&lt;<a href="http://www.themacadmin.com">http://www.themacadmin.com</a>&gt;&lt;<a href="http://www.themacadmin.com">http://www.themacadmin.com</a>&gt;<br><br><br><br><br>On Wed&#44; Dec 31&#44; 2008 at 4:58 AM&#44; Martin van Diemen &lt;martin-van-diemen@g-star.com&gt; wrote:<br>Hi&#44;<br><br>I want to delete the com.adobe.mediabrowser.plist &#40;&#126;/Library/Preferences/&#41; for the user that&#39;s currently logging in. I tried to do this with a policy:<br>Search for file by path:&nbsp;&#126;/Library/Preferences/com.adobe.mediabrowser.plist and Delete if found.<br><br>This doesn&#39;t work because it can&#39;t find the file &#40;cause it&#39;s using the casper account&#63;&#41;.<br>Is this possible with a variable e.g. /Users/&#36;1/Library/Preferences/com.adobe.mediabrowser.plist&#63; &#36;1 doesn&#39;t work.<br><br>If I use a script which variable tells me the login name of the user&#63;<br><br>Thanks in advance.<br><br>Kind Regards&#44;<br><br>Martin van Diemen<br><br>t &#43;31&#40;0&#41; 205677744<br>__________________<br><br>G-Star International B.V.<br>www.g-star.com &lt;<a href="http://www.g">http://www.g</a>-star.com&gt;&lt;<a href="http://www.g">http://www.g</a>-star.com&gt;&lt;<a href="http://www.g">http://www.g</a>-star.com&gt;&lt;<a href="http://www.g">http://www.g</a>-star.com&gt;<br>_______________________________________________<br>Casper mailing list<br>Casper@list.jamfsoftware.com<br><a href="http://list.jamfsoftware.com/mailman/listinfo/casper">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br><br><br>_______________________________________________<br>Casper mailing list<br>Casper@list.jamfsoftware.com<br><a href="http://list.jamfsoftware.com/mailman/listinfo/casper">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br><br><br>_______________________________________________<br>Casper mailing list<br>Casper@list.jamfsoftware.com<br><a href="http://list.jamfsoftware.com/mailman/listinfo/casper">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br>
    </p>
  </body>
</html>