Using K2000 to maintain KUID through imaging - Deprecated in KACE SDA version 4.0 - This now a built-in automatic task.
Preinstall task (get) will capture a KUID from a machine, and store it in petemp as the machines MAC_address.kuid
Midlevel Postinstallation task (copy) will copy the *.kuid file from petemp to %systemdrive%\KACE\bin
Postinstallation task (set) will add the KUID into the registry and should come before agent installation.
*Note, the preinstallation and midlevel task have different architecture versions as KBE will only run the appropriate
architecture .exe. The post installation does not need different architecture build.
Also, in 5.1 and lower agents, the kuid is written correctly, but then the agent will create a new kuid, but there is no duplicate.
Get KUID
Create a new preinstallation application task. Select get_kuid.exe or get_kuid_x64.exe depending on the architecture.
For the commandline, enter in the name of the .exe (get_kuid.exe or get_kuid_x64.exe).
How get_kuid.exe works:
1. The active nic is found and the MAC address recorded.
2. The registry is searched for a KUID for 5.2 or higher and 5.1 or lower
3. A file is created on the T: drive (petemp) with the MAC address as its name and .kuid as the extension.
4. The KUID is recorded inside the file in step 3.
Copy KUID
Create a new postinstallation application task. Set the runtime environment to K2000 Boot Environment (Windows).
Select copy_kuid.exe or copy_kuid_x64.exe depending on the architecture.
For the commandline, enter in the name of the .exe (copy_kuid.exe or copy_kuid_x64.exe).
How copy_kuid works:
1. The active nic is found and the MAC address recorded.
2. Copy MAC_address.kuid from petemp to %systemdrive%\KACE\bin\MAC_address.kuid
3. Delete MAC_address.kuid from petemp
Set KUID
Create a new postinstallation application task. Set the runtime environment to Windows.
Select set_kuid.exe.
For the commandline, enter in the name of the .exe; set_kuid.exe.
How set_kuid works:
1. The post installation task reads the KUID from %systemdrive%\KACE\bin
2. The post installation task writes the KUID to the correct location for 5.1 and lower and 5.2 and higher.
v. 1.0.1.0 01/09/2012
-added /drive: switch to both get and copy kuid so that the kuid file can be stored to some place other than t: if you want.
This is helpful when deploying an image from usb, which does not have a network connection to the k2.
v. 1.0.0.1 12/06/2011
-add /silent switch to get_kuid so that if there was no kuid you wouldn't be nagged about it. (for clementa)
v. 1.0.0.0 11/21/2011
-Initial release
-pull in registry for HKLM\KACE and HKLM\Dell\KACE and store in petemp
-copy the file to %systemdrive%\KACE\bin
-write kuid to HKLM\KACE and HKLM\Dell\KACE
-
There isn't any information on how to get the kuid, I have a script only to apply not capture it. Please help. - londeaux 11 years ago
Answers (13)
The errors have been fixed and the application works as expected now. Original link goes to the new files.
I thought this was working for us, but to my horror, just realised its not.
Checking the machines post scripted install, I see in the registry we have:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Dell\Kace
Which is obviously one "Wow6432Node" too many... urgh, this and the new K1000 client are giving me such headaches for 64bit. Stop breaking things for 64bit with updates KACE! I'm thinking this is related to my recent whinge and what I'm currently raising with Kace/l3 support http://www.itninja.com/question/5-4-10622-32bit-only
The above bit is set by set_kuid.exe which I have no control over. I did take get_kuid.exe and get_kuid_x64.exe and combine them into a zip file with a check_kuid.vbs, what does this file do? Firstly it checks the processor and determines which get_kuid exe to use, then it gets the mac and checks the temp drive for an existing .kuid file (e.g. an interrupted or aborted install) and quits the script if it finds one. I found without this it would overwrite a .kuid file WITH data for a new BLANK one!!!
I do have one request. Is there anyway to remove the "No KUID was found on this machine" message when no KUID is found? Maybe via a command line switch of some sort?
The reason I ask is I'd rather not have two separate scripted installs. ie. one with the KUID tasks (for reimaged workstations) and one without the KUID tasks (for new workstations or workstations where the hard drive has been replaced).
I really don't care if it does not find a KUID but I do want it to run on every workstation that is imaged/scripted just so that if there is one it'll do whatever it's supposed to do.
Make sense?
Thanks!
Andy C
Since Jan 17th, 2012, I have reimaged 167 workstations that included the get/copy kuid tasks. All workstations are showing up in the K1000 with the history of the original machine kace id. I'd say that this has been a success so far.
The only issue I'm having is dealing with the tech people in the school bitching that they have to add printers back to the workstations. Would it be possible to get a backup/restore printers task??
Comments:
-
Should the setkuid task be set first, and your join domain rename task last? In other words, will having the machine name set to something incorrect mess up the setkuid command? - edwimb 12 years ago
Comments:
-
The link above goes to the Maintain KUID for Mac page, which has the download link of http://www.itninja.com/file/download/93 You must be a member of the K2000 Community to download. - cserrins 7 years ago
so that the conversation will remain readable.