/build/static/layout/Breadcrumb_cap_w.png

Computer name harvesting

I would like to harvest the Dell Service Tag or serial number from the Windows computer and then use it as the computer name plus (for instance: -LTW7.  I would like to do when the K2000 assigns the computer name to the box when it runs the Scripted Install.

Are there any scripts out the that do this or ones that I could modify to do this?



0 Comments   [ + ] Show comments

Answers (3)

Posted by: SMal.tmcc 8 years ago
Red Belt
2
use  the get/set computername

Variables:

$Serial - The serial number of the client machine
$Make - The manufacturer of the client machine or motherboard
$Model - The model of the client machine or motherboard
$Chassis - The chassis type of the client machine
$Asset - The asset tag of the client machine
$OS - The OS version of the client machine (W7,WXP,W2K8,etc)
$Arch - The OS architecture of the client machine
$Mac - The MAC address of the active NIC

Usage examples:
setcomputername.exe /name:$OS$Arch-$Serial will set the computer name to W7X64-1234567
setcomputername.exe /name:KACE-$Asset will set the computer name to KACE-Assettag


The name will automatically be truncated to 15 characters and any non-compliant characters will be removed (underscore, ampersand, etc)


http://www.itninja.com/blog/view/get-set-computername

Posted by: bfrakes 8 years ago
Purple Belt
0

Placed the first example above in the script and it did not work.


Got the standard KBOX: ROBERT-SAGJMZ4P generate computer name.


What did I do wrong?


Comments:
  • do you have <ComputerName>*</ComputerName> in your answer file. It needs to find this to replace it with the variable - SMal.tmcc 8 years ago
Posted by: bfrakes 8 years ago
Purple Belt
0

I found it.  I was using Windows instead of the PE KBE


It is working.


Thanks...

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