Appendix B: Configuration Macros
Macros can be used in your configuration anywhere an expression is expected. During logon, these macros expand into values based on their definition. For example, when a user with an ID of GPBurdell logs on to a client machine, the “@USERID” macro text is replaced with “GPBurdell”. Macros have many practical uses. The UNC path, \\your-server\@USERID, can be used to map a drive to a per-user share. The @LSERVER macro can be used to set the system time on legacy clients from the authenticating domain controller. This table lists the supported macros and their definitions.
| Macro | Definition |
| @ADDRESS | Address of the network adapter |
| @COMMENT | User comment |
| @DATE | Date (in the format YYYY/MM/DD) |
| @DAY | Day of the week (Monday, Tuesday, and so on) |
| @DOMAIN | Domain or workgroup the computer belongs to |
| @FULLNAME | Full name of current user |
| @HOSTNAME | Fully qualified TCP/IP host name (including TCP/IP domain name) |
| @IPADDRESSx | TCP/IP address (possible values for x are 0 - 3) |
| @LANROOT | Directory where network software resides (usually Systemroot\System32) |
| @LDOMAIN | Logon domain |
| @LDRIVE | Drive that is redirected to \\logonserver\NETLOGON |
| @LSERVER | Logon server |
| @MDAYNO | Day of the month as a number from 1 to 31 |
| @MONTHNO | Months since January (1-12) |
| @MONTH | Name of the month (January, February, etc.) |
| @MSECS | Milliseconds part of the current time |
| @PRIMARYGROUP | Current user's primary group |
| @PRIV | User's privilege level (GUEST, USER, ADMIN) |
| @TIME | Current time (in the format HH:MM:SS) |
| @WDAYNO | Days since Sunday (1 - 7) |
| @WKSTA | Computer name |
| @WUSERID | Current user's Windows user ID |
| @YDAYNO | Days since January 1 (1 - 365) |
| @YEAR | Current year |
