This option specifies a Windows .BAT or .CMD file with lines ending in carriage-return/line feed that will be executed on the client after a user has logged on to the domain. Each logon script should be stored at the base of a share entitled
[netlogin]
(see the section
Section 6.5.1" for details.) This option frequently uses the
%U
or
%m
variables (user or NetBIOS name) to point to an individual script. For example:
logon script = %U.bat
will execute a script based on the username located at the base of the
[netlogin]
share. If the user who is connecting is
fred
and the path of the
[netlogin]
share maps to the directory
/export/samba/netlogin, the script should be
/export/samba/netlogin/fred.bat. Because these scripts are downloaded to the client and executed on the Windows side, they must consist of DOS formatted carriage-return/linefeed characters instead of Unix carriage returns.