Hi List, 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 kind regards Arno
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.confNo, 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.
Hi Arno, if you have a default.bat for all clients you can do the cascade to groups users or machine in this file itself i.e. for the client machine itself echo %COMPUTERNAME% call %COMPUTERNAME%.bat Regards Arno Seidel schrieb:> Hi List, > > 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 > > > kind regards > > Arno
Hi Robert, thanks a lot for that.... this is what i searched. Arno Robert Schetterer schrieb:> Hi Arno, > if you have a default.bat for all clients > you can do the cascade to groups users or machine in this file itself > i.e. for the client machine itself > > echo %COMPUTERNAME% > call %COMPUTERNAME%.bat > > > Regards > > Arno Seidel schrieb: > >> Hi List, >> >> 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 >> >> >> kind regards >> >> Arno > >