Skip to main content
Question

addToODComputerGroup.sh - how to first remove computer from all its existing OD groups, if any?

  • May 19, 2011
  • 0 replies
  • 3 views

Forum|alt.badge.img+10

Hello,

I have just found this script within the Resource Kit and works very well
in Casper.

Not being a good scripter, I was looking for some help to make
addToODComputerGroup.sh first check and remove the computer from any OD
group it could already belong to.

It would be very useful when re-imaging/re-assigning Macs without
searching within WGM.

The relevant part is creating the loop through a given existing computer
groups/lists array to remove the computer, but it's way beyond my skills...

Many thanks for your help
Ciao
Carlo