Set computer name to the Hostname field on K2000
Good morning,
Kace2000 has a Hostname field on the Boot Action menu.
For Windows XP we are using a script that deploys a MySQL client, querries the Kace Database, and create a MAC - Hostname file on the fly and than uses wsname.exe to use this name. This process is very complex but works on XP, but it will not work on Windows 7.
I would like to use the hostname stored on the Kace databse to be the MachineName of the machine I am deplying. How can I achieve that on Windows 7?
Do not send me to the Get/Set ComputerName - Knowledge Base it is not what I am looking for.
Answers (1)
Using the KBE Manipulator (https://downloads.kace.com/Login.aspx?returnUrl=/Download.aspx&filename=support/downloads/k2000/add-ons/kbe_manipulator_installer.exe) you can add ODBC to a boot environment and query the K2 database from within KBE. You could probably pipe that output to a file and have it interact with your current solution using wsname and its data file and Unattend options.
WSNAME can also do reverse DNS lookups and apply the name from the DNS record (if that's what your goal is): wsname /N:$DNS:DNS_IP_ADDRESS