I am trying to modify the 'Apply computer name' script to name a computer using the DELL service tag. The computer names we currently have use the format au-[SERVICETAG]. Would want to aviod having to manual rename computers after every deployment. Still discovering scripting and not sure how to archive this?
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


'Apply computer name' is connected directly to the 'Collect computer name' task. These only work with system images, and require sysprep-integration.

For scripted installs, create a new naming rule postinstall task. This type of task uses WSNAME. The default usage on the K2000 is to upload a text file containing mac addresses and associated workstation names; alternatively you can use WSNAME to automate the naming using machine criteria such as Make, Model, Serial number, Mac address, etc. Either way an uploaded file is required, but if you don't need to use the file in the command line then it can be an empty file.

For your specific naming example it might be: Wsname.exe /N:AU-$SERIALNUM

For your Scripted install- Reboot after the task, then join the domain and reboot again. That should take care of it.

Further documentation on usage of WSNAME is available at http://mystuff.clarke.co.nz/MyStuff/wsname.asp
Answered 11/01/2010 by: cblake
Red Belt

  • This content is currently hidden from public view.
    Reason: Removed by member request
    For more information, visit our FAQ's.
Please log in to comment
I always like to use the "/rcid" switch. This renames the computer in active directory.

Sample command:

Wsname.exe /N:AU-$SERIALNUM /rcid /user:mydomain\administrator /pass:password /deleteexisting

Just change the credentials to match your domain.
Answered 11/02/2010 by: dchristian
Red Belt

  • What runtime environment does this need to run in? K2000 Boot Environment or Windows?
    • This is for a Windows Post Install task.
Please log in to comment

I think if the machine is a member of the domain the /rcid switch does need to be used.

I usually add my machines to the domain as part of the scripted installation answer file / sysprep file.

Because of this, there is already a computer record in AD.

I guess another solution would be to use the rename and join domain post install tasks.

Answered 11/02/2010 by: dchristian
Red Belt

Please log in to comment
thanks guys for all posts. appreciate it.

this command gets the job done. wsname.exe /N:AU-$SERIALNUM

i am looking at the domain option because it seems the machines are joining the domain before they can be renamed via wsname.exe /N:AU-$SERIALNUM
Answered 11/02/2010 by: bmatore
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity