cdorobantu Posted November 7, 2006 Posted November 7, 2006 Hello, I am trying to write a script that would automatically configure the IP to a static address that I preset in WinPE. Right now I am using AutoIT to configure a program called PENETCFG to using a specific network address. I find this method a little bit unfriendly. Is there another way? Thank you.
lod3n Posted November 7, 2006 Posted November 7, 2006 Do some research on NETSH. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
cdorobantu Posted November 7, 2006 Author Posted November 7, 2006 Do some research on NETSH.Yes, I have but the only problem is that in Win XP if you were to use the NETSH command to configure the network adapter you would have to refer to it by the name "Local Area Connection". In WinPE, this adapter's name is the MAC address. This is unique to a NIC and therefore I cannot base my NETSH commands (and therefore a AutoIt script) on something that changes from machine to machine.Maybe there is another way to use NETSH and I do not know about it.Any further help is greatly appreciated.Thanks
lod3n Posted November 7, 2006 Posted November 7, 2006 You could use WMI instead, if it's enabled in winPE, and I'm not sure if it is. If so try searching the forum for Win32_NetworkAdapterConfiguration, you'll find a bunch of nifty things. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
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