I don't know if this udf will do what you want, but there is follow up threads that may answer your question.

ComputerinGroup -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=84539