Regards Jon
> I am interested to hear what way people change the computer name of their
> XPe image once it is built.
Some API functions:
NetWkstaSetInfo
SetComputerNameEx
Regards,
Slobodan
Robert
>.
>
Dim szComputerName As String
Public Declare Function SetComputerName Lib "kernel32"
Alias "SetComputerNameA" (ByVal lpComputerName As String)
As Long
Then use...
szComputername="MyServer"
It works fine for setting the name. I just wish it was as
easy to set the IP address.
SetComputerName (szComputerName)
>.
>
SetComputerName (szComputerName)
>.
>
Steve
"Jon Burt" <ja_...@hotmail.com> wrote in message
news:kdh6b.79$mi4...@newsfep1-gui.server.ntli.net...
> It works fine for setting the name. I just wish it was as
> easy to set the IP address.
This is not exactly what you want but close enough.
API: AddIPAddress not persistent.
or,
netsh interface ip set address ?
netsh interface ip set address local static ...
Best regards,
Slobodan
If you have a death wish then you can try to use this :-)
Win32_NetworkAdapterConfiguration Class
EnableStatic Method
Hope this helps,
Slobodan