How to set computer name using K1000 database during SDA deployment?
Hi all !
We are in the process of automating the reinstallation of our Windows PCs. We deploy them thanks to SDA (K2000). In addition, we would like to retrieve the names of the PCs that were used in SMA (K1000).
Is there a way to do it?
The documentation indicates that the "Get / SetComputerName" task is used to read the K1 database. Does K1 refer to the K1000 database? What command should I run to read this database?
Can the KUID also help find the name stored in SMA?
Here is the order of tasks we currently use:
- Get Computer Name
- Diskpart Windows 10
- Set Computer Name
- Apply a KUID value to the K1000 agent
- Agent installation
- Bitlocker activation
- Driver installation
review this article: https://www.itninja.com/blog/view/get-set-computername
Following this idea, I would also like to use get / setcomputername multiple times during a single install.
So it would look something like this:
- The administrator can decide to rename the PC.
getcomputername_x64.exe /timeout:120 /dialog
- The PC retrieves the name found in the K1000 database.
setcomputername_x64.exe /k1mysql /k1ipaddress:192.168.69.240 /k1dbname:ORG1 /k1dbuser:***** /k1dbpass:******
- If the administrator renamed the PC, then applied the new name.
I am currently having an error while retrieving the admin name backup file:
Unable to open x:\18DBF23F5848, it may not exist. Was GetComputerName.exe used as a preinstall task ?
Do you know how to fix this error?
Could the switch /drive: solve the problem? If so, I didn't understand how it works either.
Thank you in advance !