I want to connect to the most local server for installing my build from so what I was planning was to write a script which looked at the IP Address / Default GW of a machine when it had booted into WinPE and then lookup the nearest server based on a lookup table - I had considered a script to lookup in AD the site info but I'd rather keep this as indipendant and reliable as possible!
I've looked at scripts which use WMI to lookup IP information or PING servers and they don't seem to work in WinPE - I ammened connect.vbs to get the code in easily! I tried using KIX32.exe and it didn't work either! Does anyone have any advise on lookup these details in vbscript or anything else?!
Cheers
Clive