CliveG Posted May 16, 2004 Share Posted May 16, 2004 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?!CheersClive Link to comment Share on other sites More sharing options...
EvilGuinness Posted May 17, 2004 Share Posted May 17, 2004 You can't use WMI in windows PE : it's not implemented, as written in the doc describing the limitations.To get the IP, you can use the ipconfig command and then take what you want in what is given in the result. Link to comment Share on other sites More sharing options...
EvilGuinness Posted May 17, 2004 Share Posted May 17, 2004 Oh, I forgot something very useful : compname...it's a really great piece of software I discovered here and which I use every day now It can display alll what you want, such as IP or MAC adress, and lots of stuff like that....you can even change these informations.It's available on this page. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now