Win32_NetworkAdapterConfiguration::EnableStatic

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Has anyone used Win32_NetworkAdapterConfiguration::EnableStatic to change
from dynamic IP addresses to static addresses in an XPe system? My interest
is in booting many rack mounted devices with PXE/RBS but then changing to
addresses that can be derived from the blade's rack number and position in
the rack. The method can return a value indicating a reboot is necessary
which would undermine my goal so I am interested in knowing how this method
behaves in XPe.
 
Ray,

I never tried that particular WMI method but I'd think it should work just fine (as on XP Pro) if you happened to include WMI Core
and Win32_NetworkAdapterConfiguration (WMI Network) class provider in your image configuration and resolve thier dependencies.

Btw, you don't really need to go such high level to switch to static IP. You can do that calling to IP Helper APIs or changing
TCP/IP settings with netsh tool or directly in registry. There is also a bunch of 3rd party tool to operate with IP stack parametrs
(e.g., freeware ipchange.exe, etc.)

When you switch to static IP on XP Pro/XPe you don't need to reboot.

KM
 
Back
Top