From tlarki at kckps.org Thu Jun 17 11:04:29 2010 From: tlarki at kckps.org (Thomas Larkin) Date: Thu, 17 Jun 2010 13:04:29 -0500 Subject: [Resourcekit] updated post image script Message-ID: <4C1A1D5D020000390001E37B@pop.kckps.k12.ks.us> I just updated this, and changed a few things. I found out that certain packages like to be installed if a user is logged in, especially my add wireless package. I also found out when using pristine images built from instaDMG it won't move apps or delete apps that I try to script since everything is created from a default retail vanilla OS install DVD. This works with my custom compiled configuration as a parent configuration for smart configs. I have 3 versions of this script. Teacher version, student version, and test version. Custom trigger policies or the only difference. Otherwise they are the same scripts. Custom trigger policies are mostly certain apps only certain groups of users get. As you can see I am trying to maintain a set of variables to hard code at the top, but if you read the whole script I have sections blocked off for certain things, like custom trigger install policies. I automated the whole thing where once you hit enter you walk away and the machine will shut itself off when it is done. The work flow goes like this: 1 - create local admin accounts 2 - configure system settings and install any specific packages for group of users 3 - log in local admin 4 - install any packages and perform any functions that require a user account log in 5 - shut down system <---------------code starts here---------------> #!/bin/bash ######################################## # This is a post image script for student laptops # This script will do post configurations # # This is for the 2010-11 school year # Kansas City, KS Public schools # # By # # Thomas Larkin # http://tlarkin.com # Last revised: 06-16-10 ######################################### # set all variables here, these are hardcoded for the rest of the script # will use echo for logging and debugging # # WARNING!!!!! THIS SCRIPT REQUIRES THE JAMF BINARY # # Local admin accounts # only edit the variables of this script for future usage # check for jamf binary jamfcheck="/usr/sbin/jamf" # now check if it exists if [[ -e $jamfcheck ]] then /bin/echo "Jamf binary present, continuing as planned..." else /bin/echo "Jamf binary is not present, we need to halt" exit 55 fi # now proceed with local accounts # set all desired names and passwords with in the quotes admin1_long="Hidden Administrator" admin1_short="hadmin" admin1_passwd="password" # info for local admin account 2 to give to users who need ARD access admin2_long="ARD Viewer" admin2_short="ardview" admin2_passwd="password" # if root accunt will be enabled, set password here root_passwd="password" # set the firmware password here FirmWarePW="password" # set the network time server NTP="10.20.30.40" # create a list of post image apps you would want deleted maintain your list here # just add the full path with in the ( ), the script will call for this later on # it will simulate a user logging in so any files that creates upon first log in can also # be wiped out badfiles=( /Library/Application\ Support/Bsecure/Splash.app ) # Now, use this to maintain a list of files/Apps you want moved from the default location this # Will also be done when the script later logs in local_admin1 to configure some settings # This is mainly used for folder level access control via MCX moving apps you want to restrict # to folders you will restrict certain groups from using via MCX app_list=( /Applications/AppleScript/ /Applications/Microsoft\ AutoUpdate.app /Applications/Automator.app /Applications/Time\ Machine.app ) ########################################################################################### # All variables, and user entered data should be stored above this line # There is NO NEED to edit anything below this line # This script assumes you are running DHCP on your network interfaces # There is one point below for custom trigger policies you will have to edit those # Also, ########################################################################################## #### end of variables #### starting the script # now create accounts /usr/sbin/jamf createAccount -username "$admin1_short" -realname "$admin1_long" -password "$admin1_passwd" ?home /private/var/$admin1_short ?shell ?/bin/bash? -hiddenUser -admin /bin/sleep 5 #allow some time between accounts to ensure they create properly /usr/sbin/jamf createAccount -username "$admin2_short" -realname "$admin2_long" -password "$admin2_passwd" ?home /private/var/$admin2_short ?shell ?/bin/bash? -hiddenUser -admin /bin/sleep 5 #allow some time between accounts to ensure they create properly # now enable root /usr/sbin/dsenableroot -u $admin1_short -p $admin1_passwd -r $root_passwd /bin/echo "done creating local accounts" # # Now set some network preferences # # require admin rights for ad_hoc creation /usr/libexec/airportd en1 -ibss_admin 1 /bin/echo "adhoc networks require admin set" # ensure that airport and ethernet are set to DHCP & set IPv6 off /usr/sbin/networksetup -setv6off Ethernet /usr/sbin/networksetup -setv6off Airport /usr/sbin/networksetup -setdhcp Ethernet on /usr/sbin/networksetup -setdhcp Airport on # enable remote log in, ssh /usr/sbin/systemsetup -setremotelogin on # enforce clear text passwords in AFP /usr/bin/defaults write com.apple.AppleShareClient "afp_cleartext_allow" 1 /bin/echo "network configuration complete" # # ensure remote desktop is enabled for our local admin accounts # /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate # now set access to remote desktop, refer to admin 1 and admin 2 from above /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users $admin1_short,$admin2_short -access -on -privs -all /bin/echo "ARD client configured" ######################################## # # bleow this point, put any custom trigger policies you want to be installed # ####################################### # add the web filter client /usr/sbin/jamf policy -trigger addfilter /bin/echo "Internet Filter is now installed..." # # add computrace to all HS laptops # commenting this out for the middle school script /usr/sbin/jamf policy -trigger addcomputrace /bin/echo "Comp-U-Trace installed!" # # now to set up system settings like time zone, time server, etc # firmware passwords # # set the time zone to US/Central /usr/sbin/systemsetup -settimezone America/Chicago # set the time server to our internal time server /usr/sbin/systemsetup -setusingnetworktime on /usr/sbin/systemsetup -setnetworktimeserver $NTP # set the firmware password /usr/sbin/jamf -setOFP -mode command -passhash "$FirmWarePW" -password "$FirmWarePW" /bin/echo "System settings now configured" # Now that system settings have been set we will log in as local admin, and customize # our pristine install. Move certain apps to restrict by file path for later MCX management # For this part of the script we will use Apple Script /usr/bin/osascript < From tlarki at kckps.org Thu Jun 17 13:53:31 2010 From: tlarki at kckps.org (Thomas Larkin) Date: Thu, 17 Jun 2010 15:53:31 -0500 Subject: [Resourcekit] updated post image script In-Reply-To: <4C1A1D5D020000390001E37B@pop.kckps.k12.ks.us> References: <4C1A1D5D020000390001E37B@pop.kckps.k12.ks.us> Message-ID: <4C1A44FB020000390001E3AD@pop.kckps.k12.ks.us> Well, just did my first test run.... 10 Macbooks netbooted into a Mac Mini running 10.4.11 Server and it took almost exactly 30 minutes from start to finish, including all scripts. Now they are shutdown and ready for me to store until August when school starts......only 5,990 more laptops to go..... >>> "Thomas Larkin" 6/17/2010 1:04 PM >>> I just updated this, and changed a few things. I found out that certain packages like to be installed if a user is logged in, especially my add wireless package. I also found out when using pristine images built from instaDMG it won't move apps or delete apps that I try to script since everything is created from a default retail vanilla OS install DVD. This works with my custom compiled configuration as a parent configuration for smart configs. I have 3 versions of this script. Teacher version, student version, and test version. Custom trigger policies or the only difference. Otherwise they are the same scripts. Custom trigger policies are mostly certain apps only certain groups of users get. As you can see I am trying to maintain a set of variables to hard code at the top, but if you read the whole script I have sections blocked off for certain things, like custom trigger install policies. I automated the whole thing where once you hit enter you walk away and the machine will shut itself off when it is done. The work flow goes like this: 1 - create local admin accounts 2 - configure system settings and install any specific packages for group of users 3 - log in local admin 4 - install any packages and perform any functions that require a user account log in 5 - shut down system <---------------code starts here---------------> #!/bin/bash ######################################## # This is a post image script for student laptops # This script will do post configurations # # This is for the 2010-11 school year # Kansas City, KS Public schools # # By # # Thomas Larkin # http://tlarkin.com # Last revised: 06-16-10 ######################################### # set all variables here, these are hardcoded for the rest of the script # will use echo for logging and debugging # # WARNING!!!!! THIS SCRIPT REQUIRES THE JAMF BINARY # # Local admin accounts # only edit the variables of this script for future usage # check for jamf binary jamfcheck="/usr/sbin/jamf" # now check if it exists if [[ -e $jamfcheck ]] then /bin/echo "Jamf binary present, continuing as planned..." else /bin/echo "Jamf binary is not present, we need to halt" exit 55 fi # now proceed with local accounts # set all desired names and passwords with in the quotes admin1_long="Hidden Administrator" admin1_short="hadmin" admin1_passwd="password" # info for local admin account 2 to give to users who need ARD access admin2_long="ARD Viewer" admin2_short="ardview" admin2_passwd="password" # if root accunt will be enabled, set password here root_passwd="password" # set the firmware password here FirmWarePW="password" # set the network time server NTP="10.20.30.40" # create a list of post image apps you would want deleted maintain your list here # just add the full path with in the ( ), the script will call for this later on # it will simulate a user logging in so any files that creates upon first log in can also # be wiped out badfiles=( /Library/Application\ Support/Bsecure/Splash.app ) # Now, use this to maintain a list of files/Apps you want moved from the default location this # Will also be done when the script later logs in local_admin1 to configure some settings # This is mainly used for folder level access control via MCX moving apps you want to restrict # to folders you will restrict certain groups from using via MCX app_list=( /Applications/AppleScript/ /Applications/Microsoft\ AutoUpdate.app /Applications/Automator.app /Applications/Time\ Machine.app ) ########################################################################################### # All variables, and user entered data should be stored above this line # There is NO NEED to edit anything below this line # This script assumes you are running DHCP on your network interfaces # There is one point below for custom trigger policies you will have to edit those # Also, ########################################################################################## #### end of variables #### starting the script # now create accounts /usr/sbin/jamf createAccount -username "$admin1_short" -realname "$admin1_long" -password "$admin1_passwd" ?home /private/var/$admin1_short ?shell ?/bin/bash? -hiddenUser -admin /bin/sleep 5 #allow some time between accounts to ensure they create properly /usr/sbin/jamf createAccount -username "$admin2_short" -realname "$admin2_long" -password "$admin2_passwd" ?home /private/var/$admin2_short ?shell ?/bin/bash? -hiddenUser -admin /bin/sleep 5 #allow some time between accounts to ensure they create properly # now enable root /usr/sbin/dsenableroot -u $admin1_short -p $admin1_passwd -r $root_passwd /bin/echo "done creating local accounts" # # Now set some network preferences # # require admin rights for ad_hoc creation /usr/libexec/airportd en1 -ibss_admin 1 /bin/echo "adhoc networks require admin set" # ensure that airport and ethernet are set to DHCP & set IPv6 off /usr/sbin/networksetup -setv6off Ethernet /usr/sbin/networksetup -setv6off Airport /usr/sbin/networksetup -setdhcp Ethernet on /usr/sbin/networksetup -setdhcp Airport on # enable remote log in, ssh /usr/sbin/systemsetup -setremotelogin on # enforce clear text passwords in AFP /usr/bin/defaults write com.apple.AppleShareClient "afp_cleartext_allow" 1 /bin/echo "network configuration complete" # # ensure remote desktop is enabled for our local admin accounts # /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate # now set access to remote desktop, refer to admin 1 and admin 2 from above /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users $admin1_short,$admin2_short -access -on -privs -all /bin/echo "ARD client configured" ######################################## # # bleow this point, put any custom trigger policies you want to be installed # ####################################### # add the web filter client /usr/sbin/jamf policy -trigger addfilter /bin/echo "Internet Filter is now installed..." # # add computrace to all HS laptops # commenting this out for the middle school script /usr/sbin/jamf policy -trigger addcomputrace /bin/echo "Comp-U-Trace installed!" # # now to set up system settings like time zone, time server, etc # firmware passwords # # set the time zone to US/Central /usr/sbin/systemsetup -settimezone America/Chicago # set the time server to our internal time server /usr/sbin/systemsetup -setusingnetworktime on /usr/sbin/systemsetup -setnetworktimeserver $NTP # set the firmware password /usr/sbin/jamf -setOFP -mode command -passhash "$FirmWarePW" -password "$FirmWarePW" /bin/echo "System settings now configured" # Now that system settings have been set we will log in as local admin, and customize # our pristine install. Move certain apps to restrict by file path for later MCX management # For this part of the script we will use Apple Script /usr/bin/osascript < From john_wetter at hopkins.k12.mn.us Tue Jun 22 12:08:27 2010 From: john_wetter at hopkins.k12.mn.us (John Wetter) Date: Tue, 22 Jun 2010 14:08:27 -0500 Subject: [Resourcekit] Minneapolis Apple/JAMF Seminars - Casper User Group - This Thursday Message-ID: Please be sure to sign up for the seminars! There will be lots of Scripting information, general support, and many other things to look at and learn from. Have a question about the resource kit, there will be people on hand to help answer them and help make it work for you! It looks to be a great day of information for everyone. -John ------------------ All, With the help of John Wetter from the Hopkins Schools and the fine folks at JAMF Software, I have put together a day of seminars that will take place at the Eisenhower Community Center Building of the Hopkins Public Schools on Thursday, June 24. The day is broken into two parts -- morning sessions and afternoon sessions. You can participate in just the morning sessions, just the afternoon sessions, or both. Between the sessions, we will be providing a lunch for all of the attendees at noon. At 12:30, Tim Wilson, the Chief Technology Officer for the Osseo Area Public Schools will be giving a presentation titled "Taking Back Your Inbox" -- information I know we all need! Here is how the day will break down. Morning Sessions The morning will have three tracks for you to choose from. Track 1, which will be lead by Corey Anderson and me, will be from 9AM to Noon and will be hands-on seminar on setting up and utilizing Deploy Studio to handle your hardware imaging and deployment tasks. Track 2, which will be lead by an engineer from JAMF Software, will be a hands-on seminar on the Casper Imaging Suite, a fantastic commercial tool for imaging and deployment. This track will also be from 9AM to Noon. Track 3 will be from 10AM to Noon and will be a Casper User Group meeting for those folks who are already using the full Casper Suite or the Casper Imaging Suite. Note that if you are participating in the Deploy Studio track or the Casper Imaging Suite track, you are required to bring your own equipment, which is detailed on the registration page. You will need to choose which track you are attending at the time you register. ****To register for the morning sessions, please visit this URL: http://edseminars.apple.com/event/2824 Afternoon Sessions There will be three, 55 minute time slots in the afternoon starting at 1:30PM. The sessions will be spread across four different rooms. You do not have to choose which sessions to participate in until the day of the event. The topics will be: Intro to the Command Line This session will go over the basics of using the command line. You?ll start by learning how to use the Terminal application. You?ll also learn the basics of navigating the file system of Mac OS X from the command line along with viewing and changing file permissions. Commands to be learned will be man, ls, chown, chmod, sudo. This session is designed for you to follow along on your own computer. Intermediate Command Line This session assumes you have the basic knowledge of the Intro to Command Line session and will build on that knowledge. We will dive deeper into the command and learn about commands such as kill, su, cat, touch, grep, ps, and others. This session is designed for you to follow along on your own computer. Intro to Scripting Being able to write even a simple script to accomplish administrative tasks is the key to automating your day-to-day work in managing a fleet of Macintosh computers. This session will go over the basics of writing a script in a shell language called bash. This session assumes you have little to no knowledge or experience in writing your own scripts, but do have some basic knowledge of utilizing the Mac OS X command line via the Terminal application. This session is designed for you to follow along on your own computer. Intermediate Scripting This session is for those who have basic knowledge of the Mac OS X Command Line and understand the basics of scripting in the bash shell language. The focus of this session will be to go over more complex scripting commands including things such as looping, variables, and conditional statements. This session is designed for you to follow along on your own computer. Scripting Workshop Been thinking about writing a script to automate a task you do to take care of your computers? This is the session for you. Bring your idea and get some focused time to work on writing your script. There is no formal presentation -- just time to work and access to an experienced scripter to help you figure out things if you get stuck. This session will be repeated for all three time slots, so you can feel free to come for one time slot or for all three. Intro to launchd With the advent of Mac OS X 10.4, a new ?master process? was born for Mac OS X. Launchd is responsible for starting almost all processes and is the master scheduler for Mac OS X. Learn how you can bend launchd to your will and get it to schedule events, such as maintenance scripts for your machines. You are encouraged to follow along with your own computer during this session. Intro to Building Packages Understanding how to build packages is crucial for being able to a modular imaging technique as well as for deploying software and system changes after your image has been deployed. This session will go over the basics of building packages with both Apple?s Package Maker application and the JAMF Composer tool. This session is designed for you to follow along on your own computer. Directory Services Directory Services is a very complex topic that is often poorly understood. In this session you will learn about to bind Mac OS X to directory services such as Open Directory and Active Directory both from the command line and from the GUI. You will also learn the basics of how to troubleshoot Directory Services issues. For a DRAFT of the afternoon schedule of sessions, follow this link: http://dl.dropbox.com/u/1970397/AfternoonSeminarSchedule.pdf ****To register for the afternoon sessions, please follow this URL: http://edseminars.apple.com/event/2823 ________________________________ This electronic mail transmission may contain private or confidential data and is intended only for the person named. If you are not the intended recipient, you are notified that disclosing, copying, distributing, or taking any action in reliance on the contents of this information is strictly prohibited. If you received this message in error, please notify the sender, and delete it. Hopkins Public Schools reserves the right to monitor and review, without further consent, any messages created, sent, or received on its electronic mail system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tlarki at kckps.org Fri Jun 25 08:54:39 2010 From: tlarki at kckps.org (Thomas Larkin) Date: Fri, 25 Jun 2010 10:54:39 -0500 Subject: [Resourcekit] updated post image script In-Reply-To: <4C1A44FB020000390001E3AD@pop.kckps.k12.ks.us> References: <4C1A1D5D020000390001E37B@pop.kckps.k12.ks.us> <4C1A44FB020000390001E3AD@pop.kckps.k12.ks.us> Message-ID: <4C248AEF020000390001E7D8@pop.kckps.k12.ks.us> I had to change this because of a problem with the DHCP client ID. I had misread the man page and basically change the two networksetup lines to this: /usr/sbin/networksetup -setdhcp Ethernet /usr/sbin/networksetup -setdhcp Airport where before they had the word "on" after which I thought would turn the service on or off, but it actually sets the client ID which causes issues of machines leasing the same IP. FYI >>> "Thomas Larkin" 6/17/2010 3:53 PM >>> Well, just did my first test run.... 10 Macbooks netbooted into a Mac Mini running 10.4.11 Server and it took almost exactly 30 minutes from start to finish, including all scripts. Now they are shutdown and ready for me to store until August when school starts......only 5,990 more laptops to go..... >>> "Thomas Larkin" 6/17/2010 1:04 PM >>> I just updated this, and changed a few things. I found out that certain packages like to be installed if a user is logged in, especially my add wireless package. I also found out when using pristine images built from instaDMG it won't move apps or delete apps that I try to script since everything is created from a default retail vanilla OS install DVD. This works with my custom compiled configuration as a parent configuration for smart configs. I have 3 versions of this script. Teacher version, student version, and test version. Custom trigger policies or the only difference. Otherwise they are the same scripts. Custom trigger policies are mostly certain apps only certain groups of users get. As you can see I am trying to maintain a set of variables to hard code at the top, but if you read the whole script I have sections blocked off for certain things, like custom trigger install policies. I automated the whole thing where once you hit enter you walk away and the machine will shut itself off when it is done. The work flow goes like this: 1 - create local admin accounts 2 - configure system settings and install any specific packages for group of users 3 - log in local admin 4 - install any packages and perform any functions that require a user account log in 5 - shut down system <---------------code starts here---------------> #!/bin/bash ######################################## # This is a post image script for student laptops # This script will do post configurations # # This is for the 2010-11 school year # Kansas City, KS Public schools # # By # # Thomas Larkin # http://tlarkin.com # Last revised: 06-16-10 ######################################### # set all variables here, these are hardcoded for the rest of the script # will use echo for logging and debugging # # WARNING!!!!! THIS SCRIPT REQUIRES THE JAMF BINARY # # Local admin accounts # only edit the variables of this script for future usage # check for jamf binary jamfcheck="/usr/sbin/jamf" # now check if it exists if [[ -e $jamfcheck ]] then /bin/echo "Jamf binary present, continuing as planned..." else /bin/echo "Jamf binary is not present, we need to halt" exit 55 fi # now proceed with local accounts # set all desired names and passwords with in the quotes admin1_long="Hidden Administrator" admin1_short="hadmin" admin1_passwd="password" # info for local admin account 2 to give to users who need ARD access admin2_long="ARD Viewer" admin2_short="ardview" admin2_passwd="password" # if root accunt will be enabled, set password here root_passwd="password" # set the firmware password here FirmWarePW="password" # set the network time server NTP="10.20.30.40" # create a list of post image apps you would want deleted maintain your list here # just add the full path with in the ( ), the script will call for this later on # it will simulate a user logging in so any files that creates upon first log in can also # be wiped out badfiles=( /Library/Application\ Support/Bsecure/Splash.app ) # Now, use this to maintain a list of files/Apps you want moved from the default location this # Will also be done when the script later logs in local_admin1 to configure some settings # This is mainly used for folder level access control via MCX moving apps you want to restrict # to folders you will restrict certain groups from using via MCX app_list=( /Applications/AppleScript/ /Applications/Microsoft\ AutoUpdate.app /Applications/Automator.app /Applications/Time\ Machine.app ) ########################################################################################### # All variables, and user entered data should be stored above this line # There is NO NEED to edit anything below this line # This script assumes you are running DHCP on your network interfaces # There is one point below for custom trigger policies you will have to edit those # Also, ########################################################################################## #### end of variables #### starting the script # now create accounts /usr/sbin/jamf createAccount -username "$admin1_short" -realname "$admin1_long" -password "$admin1_passwd" ?home /private/var/$admin1_short ?shell ?/bin/bash? -hiddenUser -admin /bin/sleep 5 #allow some time between accounts to ensure they create properly /usr/sbin/jamf createAccount -username "$admin2_short" -realname "$admin2_long" -password "$admin2_passwd" ?home /private/var/$admin2_short ?shell ?/bin/bash? -hiddenUser -admin /bin/sleep 5 #allow some time between accounts to ensure they create properly # now enable root /usr/sbin/dsenableroot -u $admin1_short -p $admin1_passwd -r $root_passwd /bin/echo "done creating local accounts" # # Now set some network preferences # # require admin rights for ad_hoc creation /usr/libexec/airportd en1 -ibss_admin 1 /bin/echo "adhoc networks require admin set" # ensure that airport and ethernet are set to DHCP & set IPv6 off /usr/sbin/networksetup -setv6off Ethernet /usr/sbin/networksetup -setv6off Airport /usr/sbin/networksetup -setdhcp Ethernet on /usr/sbin/networksetup -setdhcp Airport on # enable remote log in, ssh /usr/sbin/systemsetup -setremotelogin on # enforce clear text passwords in AFP /usr/bin/defaults write com.apple.AppleShareClient "afp_cleartext_allow" 1 /bin/echo "network configuration complete" # # ensure remote desktop is enabled for our local admin accounts # /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate # now set access to remote desktop, refer to admin 1 and admin 2 from above /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users $admin1_short,$admin2_short -access -on -privs -all /bin/echo "ARD client configured" ######################################## # # bleow this point, put any custom trigger policies you want to be installed # ####################################### # add the web filter client /usr/sbin/jamf policy -trigger addfilter /bin/echo "Internet Filter is now installed..." # # add computrace to all HS laptops # commenting this out for the middle school script /usr/sbin/jamf policy -trigger addcomputrace /bin/echo "Comp-U-Trace installed!" # # now to set up system settings like time zone, time server, etc # firmware passwords # # set the time zone to US/Central /usr/sbin/systemsetup -settimezone America/Chicago # set the time server to our internal time server /usr/sbin/systemsetup -setusingnetworktime on /usr/sbin/systemsetup -setnetworktimeserver $NTP # set the firmware password /usr/sbin/jamf -setOFP -mode command -passhash "$FirmWarePW" -password "$FirmWarePW" /bin/echo "System settings now configured" # Now that system settings have been set we will log in as local admin, and customize # our pristine install. Move certain apps to restrict by file path for later MCX management # For this part of the script we will use Apple Script /usr/bin/osascript < From michael.t.hoddersen at uscga.edu Wed Jun 30 10:07:57 2010 From: michael.t.hoddersen at uscga.edu (Hoddersen, Michael T.) Date: Wed, 30 Jun 2010 13:07:57 -0400 Subject: [Resourcekit] Entourage Script Message-ID: Hello, I am trying to setup the entourageSetup script is it possible to give me a hand with the script because our format is different than the options in the script. Our email address format is firstname.middleInitial.lastName at domainName. Any suggestions? Thanks, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Slater at fscj.edu Wed Jun 30 10:32:49 2010 From: Tim.Slater at fscj.edu (Slater, Timothy) Date: Wed, 30 Jun 2010 13:32:49 -0400 Subject: [Resourcekit] Entourage Script In-Reply-To: References: Message-ID: <8C856748-F828-4DF9-BF6C-6212C0A382AB@fscj.edu> The current version of Entourage Web Services may require a different script... On Jun 30, 2010, at 1:07 PM, Hoddersen, Michael T. wrote: Hello, I am trying to setup the entourageSetup script is it possible to give me a hand with the script because our format is different than the options in the script. Our email address format is firstname.middleInitial.lastName at domainName. Any suggestions? Thanks, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From tlarki at kckps.org Wed Jun 30 11:04:09 2010 From: tlarki at kckps.org (Thomas Larkin) Date: Wed, 30 Jun 2010 13:04:09 -0500 Subject: [Resourcekit] Entourage Script In-Reply-To: References: Message-ID: <4C2B40C9020000390001EA67@pop.kckps.k12.ks.us> Can you get a spread sheet or a blank text file of all this information? Then parse it in the script? >>> "Hoddersen, Michael T." 6/30/2010 12:07 PM >>> Hello, I am trying to setup the entourageSetup script is it possible to give me a hand with the script because our format is different than the options in the script. Our email address format is firstname.middleInitial.lastName at domainName. Any suggestions? Thanks, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From William.Smith at merrillcorp.com Wed Jun 30 13:53:26 2010 From: William.Smith at merrillcorp.com (Smith, William) Date: Wed, 30 Jun 2010 15:53:26 -0500 Subject: [Resourcekit] Entourage Script In-Reply-To: Message-ID: On 6/30/10 12:07 PM, "Hoddersen, Michael T." wrote: >Hello, > >I am trying to setup the entourageSetup script is it possible to give me >a hand with the script because our format is different than the options >in the script. Our email address format is >firstname.middleInitial.lastName at domainName. Any suggestions? Are your Macs connected to a directory system? If so, you can probably pull the address using dscl. For example, our Macs are bound to Active Directory and in the Terminal I can run this AppleScript command to get my E-mail address: do shell script "dscl . read /Users/username EMailAddress" Replace "username" with the short name of the user. -- William Smith Technical Analyst Merrill Communications LLC (651) 632-1492 From Michael.T.Hoddersen at uscga.edu Wed Jun 30 14:28:35 2010 From: Michael.T.Hoddersen at uscga.edu (Hoddersen, Michael T.) Date: Wed, 30 Jun 2010 17:28:35 -0400 Subject: [Resourcekit] Entourage Script In-Reply-To: References: Message-ID: Thank you. I see if I can get the script to return that command. It should still work with AD users? Michael Hoddersen USCGA IS Department 15 Mohegan Ave. New London Ct. 06320 Office (860) 444-8298 michael.t.hoddersen at uscga.edu mhodders at harris.com -----Original Message----- From: resourcekit-bounces at list.jamfsoftware.com [mailto:resourcekit-bounces at list.jamfsoftware.com] On Behalf Of Smith, William Sent: Wednesday, June 30, 2010 4:53 PM To: resourcekit at list.jamfsoftware.com Subject: Re: [Resourcekit] Entourage Script On 6/30/10 12:07 PM, "Hoddersen, Michael T." wrote: >Hello, > >I am trying to setup the entourageSetup script is it possible to give me >a hand with the script because our format is different than the options >in the script. Our email address format is >firstname.middleInitial.lastName at domainName. Any suggestions? Are your Macs connected to a directory system? If so, you can probably pull the address using dscl. For example, our Macs are bound to Active Directory and in the Terminal I can run this AppleScript command to get my E-mail address: do shell script "dscl . read /Users/username EMailAddress" Replace "username" with the short name of the user. -- William Smith Technical Analyst Merrill Communications LLC (651) 632-1492 _______________________________________________ Resourcekit mailing list Resourcekit at list.jamfsoftware.com http://list.jamfsoftware.com/mailman/listinfo/resourcekit From William.Smith at merrillcorp.com Wed Jun 30 14:41:04 2010 From: William.Smith at merrillcorp.com (Smith, William) Date: Wed, 30 Jun 2010 16:41:04 -0500 Subject: [Resourcekit] Entourage Script In-Reply-To: Message-ID: Works for me on 10.5.8 connected to AD. I should mention that I got my terms crossed below. Run the AppleScript command in the Script Editor, not Terminal. Is it Friday yet? -- William Smith Technical Analyst Merrill Communications LLC (651) 632-1492 On 6/30/10 4:28 PM, "Hoddersen, Michael T." wrote: >Thank you. I see if I can get the script to return that command. It >should still work with AD users? > >-----Original Message----- >From: resourcekit-bounces at list.jamfsoftware.com >[mailto:resourcekit-bounces at list.jamfsoftware.com] On Behalf Of Smith, >William >Sent: Wednesday, June 30, 2010 4:53 PM >To: resourcekit at list.jamfsoftware.com >Subject: Re: [Resourcekit] Entourage Script > >On 6/30/10 12:07 PM, "Hoddersen, Michael T." > wrote: > > >>Hello, >> >>I am trying to setup the entourageSetup script is it possible to give >me >>a hand with the script because our format is different than the options >>in the script. Our email address format is >>firstname.middleInitial.lastName at domainName. Any suggestions? > >Are your Macs connected to a directory system? If so, you can probably >pull the address using dscl. For example, our Macs are bound to Active >Directory and in the Terminal I can run this AppleScript command to get >my >E-mail address: > > do shell script "dscl . read /Users/username EMailAddress" > >Replace "username" with the short name of the user.