gauravkr Posted January 19, 2009 Posted January 19, 2009 Hi,We are moving from WinPe1.6 to WinPe2.0. The problem comes when setting up networking. The network setup is now done using "wpeutil.exe InitializeNetwork" as against "factory.exe -winpe" for Winpe1.6. This brings up the network and assigns a dhcp ip to the card.Now I require to reset this n/w interface and set static IPs onto it. This was achieved by setting the static IP into the (temporary winpe) registry and then calling dhcpNotifyConfigChange() (an undocumented win API) - This updates the in-memory IP table with the IP in the registry without requiring a reboot. This API, however, doesnt work for Winpe2.0 anymore. Does anybody know of any alternative windows API which can serve the purpose? I know netsh command is an alternative but I want some other means to achieve the goal. Following are the challenges:1. initial DHCP ip which is set when running wpeutil.exe; how do I change that to a static IP?2. once its ready to take up static IPs how do I set the desired IP?3. what if I need another set of IPs to be set for the same NIC - This I think can be achieved by calling AddIpAddress() win API4. If I have added a static IP to the NIC how do I remove that (note that this is the IP *NOT* set using AddIpAddress())Please note that what I am concerned about is setting the IPs temporarily and it doesnt matter if these are lost after reboot.Thanks in advance! ~gk
gauravkr Posted January 19, 2009 Author Posted January 19, 2009 Sorry for posting to the wrong forum ... reposted it in Windows Pe forum. Cant find an option to delete the post so sending this reply... Please ignore this and rather reply to the same thread on "Windows PE" forum
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