Changes
→Pulling workstation names to hosts.xml from Active Directory OUs automatically with vbScript
</source>
Alternatively if you want hosts listed with each OU they reside within '''separately ''' to allow you to apply software to the higher leve level OUs, this should do the trick:
<source lang="vb">
' Short Description: Output AD Hosts to hosts.xml file