/build/static/layout/Breadcrumb_cap_w.png

Service Tag

Hi,

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

Answers (4)

Posted by: dchristian 14 years ago
Red Belt
1
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.

Comments:
  • What runtime environment does this need to run in? K2000 Boot Environment or Windows? - frasercarter 11 years ago
    • This is for a Windows Post Install task. - cserrins 11 years ago
Posted by: cblake 14 years ago
Red Belt
0
'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

Comments:
Posted by: dchristian 14 years ago
Red Belt
0
Cserrins,

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.

[link]http://www.kace.com/support/kb/index.php?action=artikel&cat=54&id=763&artlang=en[/link]
Posted by: bmatore 14 years ago
Orange Senior Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ