The Power of Custom Tokens
Filed under:
Deployment Solution, Deployment Solution for Dell Servers
Basics, Database, Scripting
Submitted by CondorMan on 20 June, 2008 - 12:44.
A useful feature that allows you to use any data in your Deployment Server database in a script task is Custom Tokens. The syntax for a custom token is %#*"Your SQL Query Here"%. Here are some custom tokens that might come in handy.
%#*"SELECT GETDATE()"%
will return the current date and time.
%#*"SELECT @@servername"%
will return the name of the SQL Server.
%#*"SELECT g.name FROM computer c, computer_group g WHERE c.group_id = g.group_id AND c.computer_id = %ID%"%
will return the name of the group that this computer is a member of.
(26 votes)
- Login or register to post comments
- 2220 reads
- Printer-friendly version















