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
Article Type
Technical Solution


Environment

Issue



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



 

  1. In the Deployment Server Console, right-click a test lab computer and choose Configure.
  2. Click OK, OK again, and then Yes, to schedule the task to be run immediately.
  3. Right-click the same computer and choose Properties. Make note of the computer’s ID.
  4. Go to C:\Program Files\Altiris\eXpress\Deployment Server\Temp.
  5. Find the file c<ComputerID>.cfg (where <ComputerID> is the ID you discovered in step 3. For example, c5000001.cfg)
  6. Rename that .CFG file to tokenized.cfg.
  7. Edit tokenized.cfg in Notepad.
  8. Go to the section [GLOBAL]
  9. Change the values of four existing lines of this sections as below:
    MACAddrList=
    Serial-Number=
    UUID=
    NSMachineGuid=%#!computer@ns_guid%
  10. Remove the [TCP/IP] and any [Interface#] sections.
  11. In the section [NETWORKING] set the ComputerName= value to the token you want to use for the computer name. For example, ComputerName=%ASSETTAG%
  12. Save this changing’s for the tokenized.cfg
If you want to use the tokenized configuration during image deployment, do the following.
  1. 1.Open your image deployment job.
  2. Add a Run Script task after the Deploy Image task.
  3. Paste the following into the Run this script textbox:
§REM Copy tokenized computer configuration
§REM ReplaceTokens .\temp\tokenized.cfg .\temp\aclient.cfg
  1. Select to run this script in Windows and click Finish.
  2. Select to run this script in Windows and choose Next.
  3. Enable\select Automation pre-boot environment (DOS/Windows PE/Linux/Mac OS X)
  4. Select Default Automation (Auto-Select) and choose Finish
  5. Add a Copy File task with a source of .\temp\tokenized.cfg
  6. And a destination of C:\Program Files\Altiris\Dagent\aclient.cfg
  7. Select\enable Allow to run in Automation
  8. Choose Finish
  9. 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:
  1. Create a new job.
  2. Add a Run Script task
  3. 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
  1. Select to run this script in Windows and choose Next.
  2. Enable\select Automation pre-boot environment (DOS/Windows PE/Linux/Mac OS X)
  3. Select Default Automation (Auto-Select) and choose Finish
  4. Add a Copy File task with a source of .\temp\%ID%.cfg
  5. And a destination of C:\Program Files\Altiris\Dagent\aclient.cfg
  6. Select\enable Allow to run in Automation
  7. Choose Finish
  8. 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