[Samba] Netlogon scripts
Simon Hobson
shobson-lists at colony.com
Fri Jan 21 13:01:04 GMT 2005
Arno Seidel wrote:
>maybe i missed a hint on google, but i didn´t find
>a answer to following question:
>is it possible to cascade the logon scripts...?
>for example:
>there is a standard script for all client-pc´s called: netlogon.bat
>and in addition there is for some client-pc´s a
>additional script called by the %m switch in smb.conf
No, but you can 'roll your own' ...
There are several techniques you can use :
1) Use pre-exec to run a server based script and
generate a per-user (or per machine) logon script
at each logon. You then have access to everything
the host (Linux/Unix) system knows about the
user/machine.
2) Use the basic batch file commands to test for
various things and call other batch files as
required - search the archives for ifmember.exe
which is useful for this. You then have every
machine/user use a common logon.bat and take
runtime decisions on what to do.
3) Use a client side scripting environment such
as Kixtart and write much more complex scripts.
Simon
--
Simon Hobson MA MIEE, Technology Specialist
Colony Gift Corporation Limited
Lindal in Furness, Ulverston, Cumbria, LA12 0LD
Tel 01229 461100, Fax 01229 461101
Registered in England No. 1499611
Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
More information about the samba
mailing list