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?
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)
Please log in to answer
Posted by:
dchristian
14 years ago
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.
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
'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 athttp://mystuff.clarke.co.nz/MyStuff/wsname.asp
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
Posted by:
dchristian
14 years ago
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]
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.