/build/static/layout/Breadcrumb_cap_w.png

Get/Set Computer Name not working Kace 2000 3.7

Hey!

So I've been playing around with the Get/Set Computer Script that Dell provides. I've run out of ideas as to why it isn't working. I have the preinstall task set with /dialog to prompt for the name.

I have the post set to /log and it is happening in the pre-boot environment in post install.

This is the log I'm getting.

2016-05-24 10:13:46 : ==================================================
2016-05-24 10:13:46 : Start of Set ComputerName log entry for 2016-05-24
2016-05-24 10:13:46 : ==================================================
2016-05-24 10:13:46 : 
2016-05-24 10:13:46 : Command line parameters: /log
2016-05-24 10:13:46 : 
2016-05-24 10:13:47 : Sysprepped = False
2016-05-24 10:13:49 : Getting OS information from drive letter: d:
2016-05-24 10:13:49 : Product Name: Windows 7 Professional
2016-05-24 10:13:49 : Edition ID: Professional
2016-05-24 10:13:49 : InstallationType: Client
2016-05-24 10:13:49 : Build Number: 7601
2016-05-24 10:13:49 : OS Version: 6.1
2016-05-24 10:13:49 : MAC Address: 34E6D72F3502
2016-05-24 10:13:50 : OS name is W7
2016-05-24 10:13:50 : Computer Serial Number #: 701WK12
2016-05-24 10:13:50 : Computer Manufacturer: DELL
2016-05-24 10:13:50 : Computer Model is LAT E7240
2016-05-24 10:13:50 : Chassis type: Laptop
2016-05-24 10:13:50 : Asset tag is 
2016-05-24 10:13:50 : Computer Name found on x:\ Drive and the name in the file is: ACARLSONTEST
2016-05-24 10:13:50 : Computer name is Random, bringing up dialog to change it manually
2016-05-24 10:13:50 : Computer name was random, name was changed via dialog to ACARLSONTEST
2016-05-24 10:13:50 : The file storing the computername was deleted from drive x:
2016-05-24 10:13:50 : 
2016-05-24 10:13:50 : ==================================================
2016-05-24 10:13:50 : End of Set ComputerName log entry
2016-05-24 10:13:50 : ==================================================
2016-05-24 10:13:50 : 
2016-05-24 10:13:50 : Log file was moved to workstation


Anyone have any ideas as to why the computer name is reverting to something else every single time?


0 Comments   [ + ] Show comments

Answers (1)

Posted by: SMal.tmcc 8 years ago
Red Belt
1
the get/set computer will not work if you do not have a <computername>*</computername> line in the xml answer file.

The get /dialog writes the name to a file

The set then takes that name and applies to the answer file by looking for  <computername>*</computername> in the file and replacing it. 

I had to create a mid level task to replace my answer file in my images because I did not put that line in.  In Win 7 days if you left that line out it would auto-prompt for a name.  They decided with win 10 if you do not put that in it uses a formula and creates a name for you.

Comments:
  • I'm sorry if this is a bad question:

    I am not using a sysprepped machine. Would it be possible for me to create an unattended xml with ONLY a computer name line?

    Then stick that in the image? - Protocol 8 years ago
    • are you doing scripted install or deploying an image? - SMal.tmcc 8 years ago
      • Deploying an image. - Protocol 8 years ago
      • you really should sysprep it to free up the SID also. If you do not want to do this you can poke the registry and set the name as a mid or post task or use a wmic call to rename the machine - SMal.tmcc 8 years ago
      • also no you cannot just create a cheat file, the image will not go look for it since it has not been sealed with sysprep prior to capturing - SMal.tmcc 8 years ago

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