新しいデバイスの固有識別子を作成する
新しいデバイスの固有識別子を作成するには下に示すように、ターゲット デバイスの MAC アドレスに基づいた公開変数を使用します。
Variable (Database) = macAddress | Value = Computer.Network."NIC Address" |
Variable (String) = Prefix | Value = UT (場所のようなユーザ値 - オプション) |
Variable (String) = Suffix | Value = XP (OS のようなユーザ値 - オプション) |
Variable (String) = ComputerName | Value = %Prefix%%MACaddr%%Suffix% |
次にコード サンプルに示すように、sysprep.inf ファイルまたは unattend.txt ファイルに含まれる ComputerName 変数を使って新しいデバイスの固有識別子を作成します。
[UserData]
ProductKey=%ProductKey%
FullName="Engineering"
OrgName="LANDesk"
ComputerName=%ComputerName%