[Samba] Re: More than one logon script, can I have?

Stefan (metze) Metzmacher metze at metzemix.de
Thu Sep 18 13:30:56 GMT 2003


Max Harvey schrieb:

> Hi,
> 
> RH7.3, Samba 2.2.8a, Win2KSP4 clients...
> 
> 
> I was just wondering,
> 
> I know I can have a logon script based on a machine name, on a group, a
> username, etc., but am I able to actually have a combination of the
> above?
> 
> I would like to have a standard group logon script (which I currently do
> have), but I would also like an extra script to run if they log on to
> particular machines under my domain... Suggestions?
> 
> Max.
> 

just let the main script call the other scripts
maybe use ifmember.exe to check groups...
(search google for ifmember.exe)

@echo off
@echo START default.bat

IF %OS%==DOS GOTO DOSCLIENT
GOTO NTCLIENT

:NTCLIENT
@SET NETLOGONPATH=\\SMB-1\NETLOGON\

@call %NETLOGONPATH%Groups\smb.bat
GOTO END

:DOSCLIENT
ECHO DOSCLIENT

GOTO END

:END
@echo END   default.bat


-- 

metze

-------------------------------------------
Stefan (metze) Metzmacher <metze at metzemix.de>




More information about the samba mailing list