KACE Product Support Question

Get / Set Computer Name just won't work

06/01/2015 3455 views
I've been working with this off/on for the past two months (with Dell & Lenovo PC's) and tried every combination/variable I know and it still doesn't work like the instructions say. We want to use the Asset Tag or Serial number of the PC in the Name but I still can't get the Serial number (Lenovo PC's) or the Asset Tag (Dell PC's) to come up in the PC name when using the 'Variable Replacement'.  I can get the desired text portion to work but the variable portion is always random digits.  I've run this without the Pre-Install task (GetComputerName) and get the same results.

Here's what I'm doing and how my installs/images are setup.
K2000: Version: 3.7.113224
Scripted installs: Win7 x64, basic answer file during build (<ComputerName>*</ComputerName>).
Images: Win7 x64 with other programs installed, Syspreped with basic unattend (<ComputerName>*</ComputerName>).

If I run with Pre_installation & Mid-leval task I get just the Desired Text that was input in the command line.  The log file shows the 'Get computer name' getting the Asset tag of Dell PC but the Computer Name is Blank.  Therefore the computer name is Desired Text (UMASS-) only.
Pre-installation tasks: #1 item is Get computer name (GetComputerName_x64.exe)
Mid-Leval tasks: After apply UEFI pratitions - Set Computer Name (setcomputername_x64.exe /name:UMASS-$Asset /log) - the $Asset variable is replaced with $Serial for non Dell machines).

If I run just the 'SetComputerName' as a Post-Install task with the Desired text and Variable I get the same Desired Text only that was input in the command line (UMASS-) .
Even tried zipping the Setcomputername executable but no change.

What Am I missing here.

i27EGe.png  zf0KBt.png

2 Comments   [ + ] Show comments


  • After a scripted install on a Dell E5450 and studying the log file for a few more minutes, I noticed that the "Computer Serial Number #:" line had the Asset Tag number listed but the "Asset Tag is" line was blank. So, I set the Variable to $Serial and tested. It actually worked. But why would the variable for Asset not work on Dell PC's when all this stuff was kind of created By & For Dell's? Makes no sense!!! However, using this with a Lenovo PC still doesn't pull the Serial # - just random digits.
  • Asset tags often are company tags that are stuck to the outside of the case, it is often not possible to pull those with a WMI call.. The phrase "Service Tag" is Dell's language for Serial Number.

All Answers


Are you using the latest Get/Set computer name version, can be downloaded from the support portal and this may resolve the issue.  Its possible to also run the task with the /debug mode so it can pop-up a window letting you know what it finds for the information. The routine pulls the information from WMIC data, so you can always verify with a command line to WIMIC to obtain the data and see what its showing. They should match.

Answered 06/01/2015 by: TheAustinDave
Brown Belt

Don't be a Stranger!

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

Sign up! or login


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