Displaying all posts for Scripting

Add user to admin group with Applescript

by January 12, 2010 » Add the second comment.

Need a way for your team to easily make a network or local user an admin? Copy and paste the code below into Script Editor (Applescript Editor in 10.6) and save it as an application. This can be used before deploying a machine to the user, or after they’ve logged in. (* Add user to […]

 

PPC Not booting from NetBoot Across Subnets package

by December 29, 2008 » Add more comments.

NetBoot Across Subnets from Mike Bombich has a problem setting the startup disk on a PPC machine when the target is a Leopard NetBoot set. You may see this in your system.log on your NetBoot server:
Dec 29 10:42:08 server tftpd[781]: adding RRQ to cache: 170.140.xxx.xxx,NetBoot/NetBootSP0/DS_MP_2008-12-29.nbi/booter
Dec 29 10:42:08 server tftpd[782]: file not found, trying [/private/tftpboot/NetBoot/NetBootSP0/DS_MP_2008-12-29.nbi/boote]
Dec 29 10:42:08 server tftpd[782]: file not found, trying [/private/tftpboot/NetBoot/NetBootSP0/DS_MP_2008-12-29.nbi/boot]

 

Adobe Flash 10 Installer launches Finder as root

by November 7, 2008 » Add more comments.

Several web sites have begun requiring Flash 10 to play their content. This is partially because the PC version of Flash 9 had some security problems that I won’t get into here. The good news: Adobe provides their Mac version as a package installer. The bad news:

 

LANDesk – Adding Apple Warranty Data to Inventory

by November 3, 2008 » Add more comments.

A bash script that will do an online lookup of the Mac’s serial # to determine its’ warranty status, then add that data to custom data for LANDesk.

 

Bind to AD using Apple Remote Desktop

by September 2, 2007 » Add more comments.

Need to bind a handful of Macs to Active Directory remotely? There are a couple scripts online already, including one from MacEnterprise and from Bombich. But I’ve never been able to get those to work when using with ARD. Either the AD plugin wasn’t activated or AD wasn’t added to the authentication path, etc. There’s […]

 

Convert Local Account’s Home to AD account with Local Home

by July 31, 2007 » Add more comments.

Here is a script that I use to convert a local home folder to be used by an Active Directory account. This script will rename the home folder first, then delete the local user account from NetInfo and rename the home folder back and change the permissions so the AD account can use the home […]

 

Bind to Active Directory Applescript

by July 28, 2007 » Add more comments.

There are several methods out there to automate binding to Active Directory including over Apple Remote Desktop, after a machine has been imaged using a login hook and a number of other methods. We are just starting to move our Macs to AD. Most of the machines are already imaged and will need to be […]

 

How to add an AD user as a local admin

by July 3, 2007 » Add more comments.

We all know the obvious way to allow a given group(s) to be an admin of a Mac bound to Active Directory (see image below). Although the “Allow administration by group” setting in Directory Access allows users in that group to installsoftware and perform certain other admin functions, there is a bug (or feature?) in […]

 
Pages:«12