Sign in to follow this  
Followers 0
cdorobantu

Static IP Configuration in WinPE using AutoIT

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0