I am not familiar with scripting. Do I copy what you have there and save as a .vbs ? How do I run it? Is there anything particular to my site that I have to substitute in any of the lines?
Also have you ran this on Server 2012 R2 because after getting the Pxe to install by running OSDREP.msi on all my PXe's we have started upgrading to Server 2012 R2 and OSDREP.MSI will not run on any of those.?