Hey guys

I have read many articles on changing computer names but none really help us...

I need a K2000 script as such that allows me to change the computer name in a specific way as a postinstalation task or would it be better as a preinstallation task..?

We want the following...

For a laptop we want the letter L then the serial number of the laptop

For a desktop we want the letter D then the serial number of the desktop

For a tablet we want TAB the the serial number of the tablet

Can anyone assist please?

0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



you can do this with wsname


Answered 01/21/2014 by: SMal.tmcc
Red Belt

  • be something like wsname /N:$CHASSIS-$SERIALNUM
    or create scripts for each type
    wsname /N:D-$SERIALNUM
    wsname /N:L-$SERIALNUM
    wsname /N:TAB-$SERIALNUM
Please log in to comment
Answer this question or Comment on this question for clarity



Hi vjc,

Why not just use Get/Set Computer name? When you start a build it will prompt for what you want to call the computer and you just type it in and then the build completes as normal. Sure you have to type in the name manually but it's my preferred method.

Get/Set computer name is here:



Answered 01/21/2014 by: twit
Fourth Degree Green Belt

Please log in to comment

thx guys


Answered 01/22/2014 by: vjc
Senior Yellow Belt

Please log in to comment