Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: rgmhtt on March 22, 2009, 04:12:29 PM
-
This is the way I have done it on NT in the /import/scripts directory.
I believe Samba supports per user logon scripts, can sme be setup this way? Or do I have to install the loginscript contrib and have a complex single netlogon.bat, listing every user?
And if there is no user.bat, the netlogon.bat hopefully is used....
-
rgmhtt:
put your user.bat file into user's home dir then call it via netlogon.bat.. home directory is mounted as H:, so a line as
H:\user.bat
should work.
loginscript contrib can help you to create a logon script based on user/group/machine/client o.s.
ciao
Stefano
-
loginscript contrib can help you to create a logon script based on user/group/machine/client o.s.
Stefano,
I do not see that in the wiki, is there a bug report for it?
-
Hi Craig..
sincerely, I don't know :)
I remember all the "ifx" tag cases that you can find reading the example
@ECHO OFF
ECHO Welcome to the XYZ computer network
ECHO -----------------------------------
ECHO.
#ifg finance, receipting
REM Map financedata iBay for finance and receipting groups:
NET USE F: \\server\financedata
#endif
#ifu fred
REM Say hello to Fred
ECHO Hello Fred!
#endif
#ifm fast-pc, speedy, killer-p3
REM Map the IT printer for the above named computers:
NET USE LPT1: \\server\itprn
#endif
#ifa Win95, WinNT
REM Run a virus update check on the Windows NT and 9x PCs:
call \\server\utils\files\virus\update.bat
REM The available Architectures are:
REM WinNT = Windows NT or 2000
REM Win95 = Windows 95 or 98
REM WfWg = Windows for Workgroups
#endif
is there a page in the wiki for this contrib? if yes I will update it.
Ciao
Stefano
-
rgmhtt:
put your user.bat file into user's home dir then call it via netlogon.bat.. home directory is mounted as H:, so a line as
H:\user.bat
should work.
loginscript contrib can help you to create a logon script based on user/group/machine/client o.s.
Thanks, I will have to work with this. Have to figure out how to set user.bat so that user cannot modify it...