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

carlo_anselmi
Contributor III

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

0 REPLIES 0