Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: darz82 on January 07, 2009, 07:47:15 AM
-
Hello All,
I was just wondering when you install Login script manager contrib, does this officially disable the default netlogin.bat from being used or can they both work together.
-
As Far as I know it uses both, the contrib adds a line to the main login.bat to call another login.bat that is created in the users home folder.
-
As Far as I know it uses both, the contrib adds a line to the main login.bat to call another login.bat that is created in the users home folder.
no :-)
in /netlogon share you'll find only a netlogon.bat as this:
[root@fileserver netlogon]# more netlogon.bat
@REM #------------------------------------------------------------
@REM # DO NOT MODIFY THIS FILE! It is updated automatically by the
@REM # e-smith server and gateway software. Instead, modify the source
@REM # template in the /etc/e-smith/templates-custom directory. For more
@REM # information, see http://www.e-smith.org.
@REM #------------------------------------------------------------
@ECHO OFF
REM ******************************************************
REM ** Mapping a drive to the home folder triggers the **
REM ** generation of the login script. Windows NT/2K **
REM ** does this automatically but we need to map the **
REM ** drive manually for the others. **
REM ******************************************************
IF "%OS%"=="Windows_NT" GOTO :SkipHomeMapping
NET USE z: /home
:SkipHomeMapping
REM Call the generated login script from the user's home folder:
CALL z:\netlogon.bat
@REM #------------------------------------------------------------
@REM # TEMPLATE END
@REM #------------------------------------------------------------
[code]
then, answering to OP question, login script manager contribs take full control over login script :-)
Ciao
Stefano
-
My apologies nenonano I called it login.bat instead of netlogon.bat :oops:
But !!
When you logon windows reads /netlogon/netlogon.bat
as you say depending on the answer it gets there it then reads z:\netlogon.bat
REM Call the generated login script from the user's home folder
CALL z:\netlogon.bat
This file is created in the users home directory the first time they log on by the Login script manager contrib.
So assuming the user is using XP pro, first windows reads /netlogon/netlogon.bat then the contrib takes over and then z:\netlogon.bat is read.
Hello All,
I was just wondering when you install Login script manager contrib, does this officially disable the default netlogin.bat from being used or can they both work together.
So it looks like it will not disable the default netlogin.bat, it uses both ?
Sorry I'm not splitting hairs here I just want to get it clear in my own mind
-
as you say depending on the answer it gets there it then reads z:\netlogon.bat
z:\netlogon.bat is re-generated each time user login.. and its content is what you put into via the server-manager web panel
Ciao
Stefano
p.s. no need to apologize ;-)