PC Review


Reply
Thread Tools Rate Thread

Change Computer Name

 
 
Jon Burt
Guest
Posts: n/a
 
      6th Sep 2003
I am interested to hear what way people change the computer name of their
XPe image once it is built.

Regards Jon


 
Reply With Quote
 
 
 
 
Slobodan Brcin
Guest
Posts: n/a
 
      6th Sep 2003
Hi 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


 
Reply With Quote
 
Robert
Guest
Posts: n/a
 
      6th Sep 2003
I use a VBScript to set the computer name, IP Address,
Subnet Mask, Default Gateway, and Time Zone. This Script
launches the first time the box is booted after ghosting
the image to it.

Robert

>-----Original Message-----
>Hi 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
>
>
>.
>

 
Reply With Quote
 
David Vanstone
Guest
Posts: n/a
 
      8th Sep 2003
I use the following within a VB program.

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)
>-----Original Message-----
>I use a VBScript to set the computer name, IP Address,
>Subnet Mask, Default Gateway, and Time Zone. This Script
>launches the first time the box is booted after ghosting
>the image to it.
>
>Robert
>
>>-----Original Message-----
>>Hi 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
>>
>>
>>.
>>

>.
>

 
Reply With Quote
 
David Vanstone
Guest
Posts: n/a
 
      8th Sep 2003
Oops, I missed a bit.

SetComputerName (szComputerName)



>-----Original Message-----
>I use the following within a VB program.
>
>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)
>>-----Original Message-----
>>I use a VBScript to set the computer name, IP Address,
>>Subnet Mask, Default Gateway, and Time Zone. This

Script
>>launches the first time the box is booted after ghosting
>>the image to it.
>>
>>Robert
>>
>>>-----Original Message-----
>>>Hi 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
>>>
>>>
>>>.
>>>

>>.
>>

>.
>

 
Reply With Quote
 
Steven Do
Guest
Posts: n/a
 
      8th Sep 2003
We deploy hundreds of the NTE & XPE in the field. Each embedded runtime has
its own computer name and ip address. To accomplish this we use an ini file
which we have entries like computer name, wep encryption for wireless,
controlled device port settings, static ip address per device configuration.
On boot our custom software service start and read the ini file. If setting
in the ini does not match with the registry entries then the registry is
updated with the new entry, an then reboot. After the initial setup from
the ini file, the software is capable of receiving remote commands from
server and all setting on the runtime can be reconfigured futher.


Steve


"Jon Burt" <(E-Mail Removed)> wrote in message
news:kdh6b.79$(E-Mail Removed)...
> I am interested to hear what way people change the computer name of their
> XPe image once it is built.
>
> Regards Jon
>
>



 
Reply With Quote
 
Slobodan Brcin
Guest
Posts: n/a
 
      8th Sep 2003
Hi David,

> 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


 
Reply With Quote
 
Slobodan Brcin
Guest
Posts: n/a
 
      8th Sep 2003
I have just remembered,

If you have a death wish then you can try to use this :-)

Win32_NetworkAdapterConfiguration Class
EnableStatic Method

Hope this helps,
Slobodan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
computer name change bry25_uk Windows XP Customization 5 2nd Jan 2008 10:17 PM
How to change My Computer 'sw Name? drybones Windows XP Help 5 1st Dec 2005 04:05 PM
computer name change strong_field Windows XP General 2 28th Nov 2004 01:57 PM
How can I change the computer name of my computer? =?Utf-8?B?Qm9iIEdhcmJlcg==?= Windows XP Networking 2 10th Nov 2004 10:54 PM
How to change Computer Name -- not just NetBIOS Computer Name Dr. StrangeDub Microsoft Dot NET 4 20th Feb 2004 05:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:45 PM.