I always hate it when people do this to me... but that code can be summed up in one line:

?  CreateObject("ADSystemInfo").computername

The problem is, the starter of the thread is not looking for the OU of the current computer, but all the computers in a specific OU or Group. The code is out there, but it is work to get it all nice and tidy.