Client Management Suite

 View Only

How to use the %COMPUTERID% token in Notification Server 7 

Oct 06, 2010 03:14 PM

When creating a Run Script task, you are given the option to insert a token. Tokens allow you to work with computer specific information from the database in your script. Using tokens, you can write very powerful scripts. The Computer ID token is available for Deployment Server 6.9. It is used often during scripts to file names unique to the computer and for a number of other purposes. Unfortunately, this token is not available on Notification Server 7.0. However, you can specify a custom Computer ID token. Here is how:

  1. Open the Tokens configuration page. Token configuration can be found in one of two ways.
    a.  In the Altiris Console, click Settings->All Settings, then go to Settings/Notification Server/Task Settings/Tokens
    b.  While editing a Run Script Task, click the Create/Edit button next to “Insert Token”
  2. Click the “New token” button.
     
  3. For the token name, enter COMPUTERID
  4. For the SQL Statement, enter the following:
    SELECT '%COMPUTERID%'
  5. Click the “Save changes” button.
     
  6. Close the Tokens configuration page.
Now you can reference the Computer ID by using the token %COMPUTERID% in your Run Script tasks.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Oct 08, 2010 06:15 AM

Thanks Condorman, where can we find a list of usable ID's for the SQL part....

I think i could use this more with Location or IP Address ranges :-)

Related Entries and Links

No Related Resource entered.