How to use ASSETTAG as computer configuration value to set Computer Name
| Article:TECH160615 | | | Created: 2011-05-23 | | | Updated: 2012-08-13 | | | Article URL http://www.symantec.com/docs/TECH160615 |
Problem
How can I use a computer’s Asset Tag as Token to set the name of a computer?
As default only Serial Number, MAC Address and UUID could be used as Token to set the computer name.
Environment
Deployment Solution 6.9 SP X
Solution
- In the Deployment Server Console, right-click a test lab computer and choose Configure.
- Click OK, OK again, and then Yes, to schedule the task to be run immediately.
- Right-click the same computer and choose Properties. Make note of the computer’s ID.
- Go to C:\Program Files\Altiris\eXpress\Deployment Server\Temp.
- Find the file c<ComputerID>.cfg (where <ComputerID> is the ID you discovered in step 3. For example, c5000001.cfg)
- Rename that .CFG file to tokenized.cfg.
- Edit tokenized.cfg in Notepad.
- Go to the section [GLOBAL]
- Change the values of four existing lines of this sections as below:
MACAddrList=
Serial-Number=
UUID=
NSMachineGuid=%#!computer@ns_guid% - Remove the [TCP/IP] and any [Interface#] sections.
- In the section [NETWORKING] set the ComputerName= value to the token you want to use for the computer name. For example, ComputerName=%ASSETTAG%
- Save this changing’s for the tokenized.cfg
If you want to use the tokenized configuration during image deployment, do the following.
- 1.Open your image deployment job.
- Add a Run Script task after the Deploy Image task.
- Paste the following into the Run this script textbox:
§REM Copy tokenized computer configuration
§REM ReplaceTokens .\temp\tokenized.cfg .\temp\aclient.cfg
- Select to run this script in Windows and click Finish.
- Select to run this script in Windows and choose Next.
- Enable\select Automation pre-boot environment (DOS/Windows PE/Linux/Mac OS X)
- Select Default Automation (Auto-Select) and choose Finish
- Add a Copy File task with a source of .\temp\tokenized.cfg
- And a destination of C:\Program Files\Altiris\Dagent\aclient.cfg
- Select\enable Allow to run in Automation
- Choose Finish
- Add a Power Management—Reboot task.
If you want to use the tokenized configuration to configure a computer any time other than during image deployment, do the following:
- Create a new job.
- Add a Run Script task
- Paste the following into the Run this script textbox, just to describe the function of the job:
- REM Prepare tokenized computer configuration to be copied
- REM ReplaceTokens .\Temp\tokenized.cfg .\Temp\%ID%.cfg
- Select to run this script in Windows and choose Next.
- Enable\select Automation pre-boot environment (DOS/Windows PE/Linux/Mac OS X)
- Select Default Automation (Auto-Select) and choose Finish
- Add a Copy File task with a source of .\temp\%ID%.cfg
- And a destination of C:\Program Files\Altiris\Dagent\aclient.cfg
- Select\enable Allow to run in Automation
- Choose Finish
- Add a Power Management—Reboot task.
|
|
Article URL http://www.symantec.com/docs/TECH160615
Terms of use for this information are found in Legal Notices









Thank you.