[Casper] Scripting help

Ernst, Craig S. ERNSTCS at uwec.edu
Fri Nov 7 07:41:03 PST 2008


I have basically the same thing so I'm not sure what the issue is. If the machine is already bound you don't need to specify the domain in front of the names.

--

#!/bin/sh

######################################################
## This script will add the following group later to AD bindings.
## Created Wednesday, January 9, 2008 - ERNSTCS
######################################################

sleep 90

/usr/sbin/dsconfigad -groups "LAB.BITS.ADMINS,LAB.ADMINS"


--

I have a sleep in there to make sure the services needed to do this are running. This script runs at FirstRun after imaging so I make sure the AD binding part has finished first with the sleep.

You trust your domain and enterprise admins? =)

If the JAMF log is saying it can't even find your script that's a different problem. What happens if you run this script locally on a machine?

Craig E


On 11/7/08 9:32 AM, "Cyrus Vahhaji" <Cyrus.Vahhaji at bestbuy.com> wrote:

Questions for scripting experts. I'm trying to run this as a script and for some reason its not running. Here is what I've scripted.


#!/bin/sh

dsconfigad -groups "NA\domain admins,NA\enterprise admins,NA\bby-r-corpworkstationadmin-wk-f,NA\bby-r-MacAdminUsers-WK-F"

Does anything jump out that prevents this from running? After running the script using Casper the log says it can't be found which I'm guessing there is a syntax error somewhere?

Thanx,
Cyrus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081107/a9eb4ca1/attachment.html 


More information about the Casper mailing list