My blog has moved!

You should be automatically redirected in 6 seconds. If not, visit
http://www.macadmincorner.com
and update your bookmarks.

Saturday, July 28, 2007

Bind to Active Directory Applescript

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 put on the domain one by one by various members of my team. ARD is not always an option (not everyone on my team uses it). So login hooks and ARD are not always the best option for us.

So I created an applescript that would could bind a machine to AD with consistent settings and less room for error. This script will prompt you for a domain admin user name and password so it doesn't have to be stored in the script. It will need to be modified for your environment.

You can download it from here.

Please let me know how it works for you.

4 comments:

Anonymous said...

Great script! I've modified for my own use and have been using it to join 50+ Macs to our domain.

Anonymous said...

Hello,

This is a great script however I'm having trouble getting it to work. I keep getting errors regarding my Directory service node. I have checked and double checked that the node address is correct. If you could get in touch with me by way of email i would be forever grateful.

Thanks

adam [dot] moss [at] penton [dot] com

Reed said...

this may sound a little sily but how am I supposed to edit a .app?

Patrick Gallagher said...

Open it with Script Editor.

Saturday, July 28, 2007

Bind to Active Directory Applescript

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 put on the domain one by one by various members of my team. ARD is not always an option (not everyone on my team uses it). So login hooks and ARD are not always the best option for us.

So I created an applescript that would could bind a machine to AD with consistent settings and less room for error. This script will prompt you for a domain admin user name and password so it doesn't have to be stored in the script. It will need to be modified for your environment.

You can download it from here.

Please let me know how it works for you.

4 comments:

Anonymous said...

Great script! I've modified for my own use and have been using it to join 50+ Macs to our domain.

Anonymous said...

Hello,

This is a great script however I'm having trouble getting it to work. I keep getting errors regarding my Directory service node. I have checked and double checked that the node address is correct. If you could get in touch with me by way of email i would be forever grateful.

Thanks

adam [dot] moss [at] penton [dot] com

Reed said...

this may sound a little sily but how am I supposed to edit a .app?

Patrick Gallagher said...

Open it with Script Editor.

Saturday, July 28, 2007

Bind to Active Directory Applescript

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 put on the domain one by one by various members of my team. ARD is not always an option (not everyone on my team uses it). So login hooks and ARD are not always the best option for us.

So I created an applescript that would could bind a machine to AD with consistent settings and less room for error. This script will prompt you for a domain admin user name and password so it doesn't have to be stored in the script. It will need to be modified for your environment.

You can download it from here.

Please let me know how it works for you.

4 comments:

Anonymous said...

Great script! I've modified for my own use and have been using it to join 50+ Macs to our domain.

Anonymous said...

Hello,

This is a great script however I'm having trouble getting it to work. I keep getting errors regarding my Directory service node. I have checked and double checked that the node address is correct. If you could get in touch with me by way of email i would be forever grateful.

Thanks

adam [dot] moss [at] penton [dot] com

Reed said...

this may sound a little sily but how am I supposed to edit a .app?

Patrick Gallagher said...

Open it with Script Editor.