為新裝置建立唯一識別碼
要為新裝置建立唯一識別碼,請使用以目標裝置的 MAC 位址為基礎的公用變數,如下所示:
Variable (Database) = macAddress | Value = Computer.Network."NIC Address" |
Variable (String) = Prefix | Value = UT (User value like location - Optional) |
Variable (String) = Suffix | Value = XP (User value like OS - Optional) |
Variable (String) = ComputerName | Value = %Prefix%%MACaddr%%Suffix% |
下一步, 在您的 sysprep.inf 或 unattend.txt 檔案中使用 ComputerName 變數以唯一識別新裝置,如下列程式碼範例所示:
[UserData]
ProductKey=%ProductKey%
FullName="Engineering"
OrgName="LANDesk"
ComputerName=%ComputerName%